Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MyColor ¶
type MyColor struct { R uint8 G uint8 B uint8 A uint8 H float32 S float32 V float32 SortValue float32 }
func (*MyColor) ComputeHSV ¶
func (c *MyColor) ComputeHSV()
Read r, g b in the range 0-255; set h, s, v in the range 0-1. Taken from http://stackoverflow.com/questions/8022885/rgb-to-hsv-color-in-javascript
func (*MyColor) SetSortValue ¶
Compute and set the SortValue for the MyColor object. "kind" is the type of sort to do. Use one of: random semirandom h h2 v s
Click to show internal directories.
Click to hide internal directories.