svg

package
v0.0.0-...-40008dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorGradient

func ColorGradient(colorSpace string, numColors int, invertColor bool) (gradient []string)

ColorGradient defines a color gradient to use for fill values. It defines the colors to use via HSL and then converts those to HEX.

func HSLtoHex

func HSLtoHex(hsl map[string]float64) (hex string)

HSLtoHex converts hsl colors to rgb to hex. Takes HSL values between 0 - 1 and converts to range from 0 - 255, then converts to hex.

func HuetoRGB

func HuetoRGB(p, q, t float64) float64

HuetoRGB converts a hue to rgb.

Types

This section is empty.

Directories

Path Synopsis
Package heatmap creates svg files for various image types.
Package heatmap creates svg files for various image types.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL