Versions in this module Expand all Collapse all v1 v1.1.0 Jan 7, 2021 v1.0.0 Mar 20, 2019 Changes in this version + func CMYKToRGB(c float64, m float64, y float64, k float64) (r float64, g float64, b float64) + func HSLToRGB(h float64, s float64, l float64) (r float64, g float64, b float64) + func HSVToRGB(h float64, s float64, v float64) (r float64, g float64, b float64) + func HTMLToRGB(h string) (r float64, g float64, b float64) + func HexToRGB(h string) (r float64, g float64, b float64) + func HueToRGB(p float64, q float64, t float64) float64 + func RGBToCMYK(r float64, g float64, b float64) (c float64, m float64, y float64, k float64) + func RGBToHSL(r float64, g float64, b float64) (h float64, s float64, l float64) + func RGBToHSV(r float64, g float64, b float64) (h float64, s float64, v float64) + func RGBToHTML(r float64, g float64, b float64) (h string) + func RGBToHex(r float64, g float64, b float64) string + type Color struct + Alpha float64 + Blue float64 + Green float64 + Red float64 + func NewCMYK(c float64, m float64, y float64, k float64) *Color + func NewCMYKA(c float64, m float64, y float64, k float64, a float64) *Color + func NewHSL(h float64, s float64, l float64) *Color + func NewHSLA(h float64, s float64, l float64, a float64) *Color + func NewHSV(h float64, s float64, v float64) *Color + func NewHSVA(h float64, s float64, v float64, a float64) *Color + func NewHTML(color string) *Color + func NewHTMLA(color string, a float64) *Color + func NewHex(color string) *Color + func NewHexA(color string, a float64) *Color + func NewRGB(r float64, g float64, b float64) *Color + func NewRGBA(r float64, g float64, b float64, a float64) *Color + func (c *Color) AdjustHue(degrees float64) *Color + func (c *Color) Brighten(percent float64) *Color + func (c *Color) CMYK() (float64, float64, float64, float64) + func (c *Color) Complement() *Color + func (c *Color) Contrast(color *Color) float64 + func (c *Color) Darken(percent float64) *Color + func (c *Color) Desaturate(percent float64) *Color + func (c *Color) Foreground() *Color + func (c *Color) Grayscale() *Color + func (c *Color) HSL() (float64, float64, float64) + func (c *Color) HSLA() (float64, float64, float64, float64) + func (c *Color) HSV() (float64, float64, float64) + func (c *Color) HSVA() (float64, float64, float64, float64) + func (c *Color) HTML() string + func (c *Color) Hex() string + func (c *Color) Hue() float64 + func (c *Color) Invert() *Color + func (c *Color) IsDark() bool + func (c *Color) IsLight() bool + func (c *Color) Lighten(percent float64) *Color + func (c *Color) Lightness() float64 + func (c *Color) Luminanace() float64 + func (c *Color) LuminanaceWCAG() float64 + func (c *Color) Mix(color *Color, weight float64) *Color + func (c *Color) RGB() (float64, float64, float64) + func (c *Color) RGBA() (float64, float64, float64, float64) + func (c *Color) Saturate(percent float64) *Color + func (c *Color) Saturation() float64 + func (c *Color) Shade(percent float64) *Color + func (c *Color) Tint(percent float64) *Color