Documentation ¶
Index ¶
- type Color
- func (c Color) GetLuminace() float32
- func (c Color) GetMaximum() uint8
- func (c Color) GetMean() uint8
- func (c Color) GetMinimum() uint8
- func (c Color) GetProportions() (float32, float32, float32)
- func (c Color) GetSorted() []uint8
- func (c Color) GetSortedProportions() []float32
- func (c Color) IsDark() bool
- func (c Color) IsGray() bool
- func (c Color) IsLight() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Color ¶
func (Color) GetLuminace ¶
GetLuminace calculates the luminance of the color.
func (Color) GetMaximum ¶
GetMaximum gets the max value of the color.
func (Color) GetMinimum ¶
GetMinimum gets the min value of the color.
func (Color) GetProportions ¶
GetProportions gets the proportions (percentages) of each color.
func (Color) GetSortedProportions ¶
GetSorted gets the values of the colors sorted.
Click to show internal directories.
Click to hide internal directories.