Versions in this module Expand all Collapse all v0 v0.3.0 May 28, 2021 v0.2.0 May 6, 2021 v0.1.0 May 2, 2021 Changes in this version + type Color struct + HSL HSL + HSV HSV + func (c *Color) Build(r, g, b uint8, buildAll bool) *Color + func (c *Color) BuildFromHex(hex string, buildAll bool) (*Color, error) + func (c *Color) HueDistance(c2 *Color) uint16 + func (c *Color) RgbDistance(c2 *Color) float64 + func (c *Color) ToHex() string + type HSL struct + H uint16 + L float32 + S float32 + type HSV struct + H uint16 + S float32 + V float32 + type Image struct + FilePath string + func (i *Image) Pixels() []RGB + type Palette []*Color + func (p *Palette) AverageColor() *Color + func (p *Palette) BuildFromHex(colors ...string) (*Palette, error) + func (p *Palette) BuildFromImage(source Quantizeable) *Palette + func (p *Palette) Common(p2 *Palette) *Palette + func (p *Palette) LightColors(limit1, limit2 uint16) *Palette + func (p *Palette) Quantize(q Quantizer, count uint) *Palette + func (p *Palette) SortBy(v SortProperty, order bool) *Palette + func (p *Palette) SortSimilarColors() *Palette + func (p *Palette) ToHex() []string + func (p *Palette) Unique() *Palette + type Quantizeable interface + Pixels func() []RGB + type Quantizer interface + Quantize func(*Palette, uint) *Palette + type RGB struct + B uint8 + G uint8 + R uint8 + type SortProperty int + const Blue + const Green + const HSLHue + const HSLLightness + const HSLSaturation + const HSVHue + const HSVSaturation + const HSVValue + const Red