Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Color ¶
type Color struct {
// H is Hue in degrees [0, 360)
H float64
// S Saturation [0, 1]
S float64
// L Lightness [0, 1]
L float64
}
Color represents a color in the HSL colorspace. Hue (H) is in degrees [0, 360], Saturation (S) and Lightness (L) are in [0.0, 1.0].
func MustHexHSL ¶
func (*Color) Hex ¶
Hex returns the hex color string representation (e.g., "#ffcc00") of the HSL color.
Click to show internal directories.
Click to hide internal directories.