Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Color ¶
Components are normalized floats ranging from 0 to 1
func ColorScaled ¶
func NewColorFromBytes ¶
NewColorFromBytes creates a new color from 8bit components (0->255)
func NewColorFromFloats ¶
NewColorFromFloats creates a new color from float components (0->1)
func NewColorFromGrayInt ¶
NewColorFromGrayInt creates a gray shade from float components (0->1)
func NewColorFromHex ¶
NewColorFromHex creates a new color from an hex number
func NewColorFromImageRGBA ¶
NewColorFromImageRGBA creates a new color from color.RGBA
Click to show internal directories.
Click to hide internal directories.