Documentation ¶
Index ¶
- type RGB
- func (c *RGB) AsColorful() colorful.Color
- func (c *RGB) AsComponents() (int, int, int)
- func (c *RGB) AsPB() pb.RGB
- func (c *RGB) GetInterpolatedFade(target RGB, step, numSteps int) RGB
- func (c *RGB) GetXyy() (x, y, Yout float64)
- func (c *RGB) IsBlack() bool
- func (c *RGB) TermString() string
- func (c *RGB) ToHex() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RGB ¶
RGB holds RGB values (0-255, although they can be negative in the case of a delta)
func GetRGBFromColorful ¶
GetRGBFromColorful turns a colorful.Color struct into an RGB one
func GetRGBFromString ¶
GetRGBFromString turns a string into an RGB color The input can either be hex (#00FF00) or a string (green)
func (*RGB) AsColorful ¶
AsColorful turns a colorful.Color into an RGB
func (*RGB) AsComponents ¶
AsComponents returns the seperate r, g, b
func (*RGB) GetInterpolatedFade ¶
GetInterpolatedFade returns fade from one color to another.
func (*RGB) TermString ¶
TermString returns a ANSI-color formatted r/g/b string
Click to show internal directories.
Click to hide internal directories.