Documentation ¶
Overview ¶
Package gorilla/color provides converters for different color models.
It implements Hex, HSL and HSV models following the interfaces defined in the standard image/color package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HSLModel = color.ModelFunc(hslModel)
HSLModel converts any Color to a HSL color.
View Source
var HSVModel = color.ModelFunc(hsvModel)
HSVModel converts any Color to a HSV color.
View Source
var HexModel = color.ModelFunc(hexModel)
HexModel converts any Color to an Hex color.
Functions ¶
Types ¶
type HSL ¶
type HSL struct {
H, S, L float64
}
HSL represents a cylindrical coordinate of points in an RGB color model.
Values are in the range 0 to 1.
type HSV ¶
type HSV struct {
H, S, V float64
}
HSV represents a cylindrical coordinate of points in an RGB color model.
Values are in the range 0 to 1.
Click to show internal directories.
Click to hide internal directories.