Documentation ¶
Overview ¶
Color utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( COLOR_RED = NewColorRGBA(1, 0, 0, 1) COLOR_GREEN = NewColorRGBA(0, 1, 0, 1) COLOR_BLUE = NewColorRGBA(0, 0, 1, 1) COLOR_BLACK = NewColorRGBA(0, 0, 0, 1) COLOR_WHITE = NewColorRGBA(1, 1, 1, 1) COLOR_YELLOW = NewColorRGBA(1, 1, 0, 1) COLOR_CYAN = NewColorRGBA(0, 1, 1, 1) COLOR_MAGENDA = NewColorRGBA(1, 0, 1, 1) )
View Source
var COLOR_WHEEL_BASIC = []ColorRGBA{ COLOR_RED, COLOR_GREEN, COLOR_BLUE, COLOR_BLACK, COLOR_WHITE, COLOR_YELLOW, COLOR_CYAN, COLOR_MAGENDA, }
Functions ¶
This section is empty.
Types ¶
type ColorRGBA ¶
type ColorRGBA struct {
R, G, B, A float32
}
Holds red, green, blue, alpha values. Each should be clamped in [0,1]. A=1 is fully opaque.
func NewColorRGBA ¶
func NewColorRGBAFromArray ¶
func NewColorRGBAFromBytes ¶
func NewColorRGBAFromSlice ¶
func (*ColorRGBA) ToImageRGBA ¶
Click to show internal directories.
Click to hide internal directories.