Documentation ¶
Overview ¶
Package basiccolor provides functions to determine the closest basic color (e.g., red, white, orange) to a given color.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HSLModel = color.ModelFunc(func(c color.Color) color.Color { if _, ok := c.(HSL); ok { return c } nrgba := color.NRGBAModel.Convert(c).(color.NRGBA) h, s, l := nrgbToHSL(nrgba.R, nrgba.G, nrgba.B) return HSL{h, s, l, nrgba.A} })
HSLModel is the color.Model for the HSL type.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.