Versions in this module Expand all Collapse all v0 v0.1.0 Sep 16, 2020 Changes in this version type Color + func ParseInt64(i int64) (Color, error) + func (color *Color) MarshalText() ([]byte, error) + func (color *Color) UnmarshalText(d []byte) (err error) v0.0.0 Sep 12, 2020 Changes in this version + var ErrorInvalidColor = errors.New("invalid color") + type Color struct + Alpha uint8 + Blue uint8 + Green uint8 + Red uint8 + func ParseCMYKA(c, m, y, k, a float64) (color Color) + func ParseCMYKAWhole(c, m, y, k, a uint8) Color + func ParseHSLA(h, s, l, a float64) (color Color) + func ParseHSLAWhole(h uint16, s, l, a uint8) Color + func ParseString(s string) (Color, error) + func (color *Color) CMYKA() (c, m, y, k, a float64) + func (color *Color) CMYKAWhole() (c, m, y, k, a uint8) + func (color *Color) HSLA() (h, s, l, a float64) + func (color *Color) HSLAWhole() (h uint16, s, l, a uint8) + func (color *Color) MarshalJSON() ([]byte, error) + func (color *Color) RGBA() (r, g, b, a uint8) + func (color *Color) UnmarshalJSON(b []byte) (err error) + func (color Color) Equal(c Color) bool + func (color Color) String() string