Documentation ¶ Index ¶ type Color func MustHexRGB(hexstr string) *Color func NewHexRGB(hexstr string) (*Color, error) func NewRGB(r, g, b uint8) *Color func (c *Color) Hex() string func (c *Color) RGB() (r, g, b uint8) func (c *Color) SetHex(hex string) error func (c *Color) SetRGB(r, g, b uint8) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Color ¶ type Color struct { R uint8 G uint8 B uint8 } Color represents a color in the RGB color space. func MustHexRGB ¶ func MustHexRGB(hexstr string) *Color func NewHexRGB ¶ func NewHexRGB(hexstr string) (*Color, error) func NewRGB ¶ func NewRGB(r, g, b uint8) *Color func (*Color) Hex ¶ func (c *Color) Hex() string func (*Color) RGB ¶ func (c *Color) RGB() (r, g, b uint8) func (*Color) SetHex ¶ func (c *Color) SetHex(hex string) error func (*Color) SetRGB ¶ func (c *Color) SetRGB(r, g, b uint8) Source Files ¶ View all Source files constructors.gorgb.go Click to show internal directories. Click to hide internal directories.