Versions in this module Expand all Collapse all v0 v0.0.2 Mar 5, 2022 v0.0.1 Mar 5, 2022 Changes in this version + var ErrNaN = errors.New("palette: specified value == NaN") + var ErrOverflow = errors.New("palette: specified value > maximum") + var ErrUnderflow = errors.New("palette: specified value < minimum") + var HSVAModel = color.ModelFunc(hsvaModel) + type ColorMap interface + Alpha func() float64 + At func(float64) (color.Color, error) + Max func() float64 + Min func() float64 + Palette func(colors int) Palette + SetAlpha func(float64) + SetMax func(float64) + SetMin func(float64) + func Reverse(c ColorMap) ColorMap + type DivergingColorMap interface + ConvergePoint func() float64 + SetConvergePoint func(float64) + type DivergingPalette interface + CriticalIndex func() (low, high int) + func Radial(colors int, start, end Hue, alpha float64) DivergingPalette + type HSVA struct + A float64 + H float64 + S float64 + V float64 + func (c HSVA) RGBA() (r, g, b, a uint32) + type Hue float64 + const Blue + const Cyan + const Green + const Magenta + const Red + const Yellow + func (h Hue) Complement() Hue + type Palette interface + Colors func() []color.Color + func Heat(colors int, alpha float64) Palette + func Rainbow(colors int, start, end Hue, sat, val, alpha float64) Palette