Documentation
¶
Overview ¶
Package ok contains OKLab/OKLch color implementations
Package ok contains OKLab/OKLch color implementations
Package ok contains OKLab/OKLch color implementations
Package ok contains OKLab/OKLch color implementations
Index ¶
- func ChromaMap() chromaMap
- func GetMaxChroma(lum, hue float64) float64
- func MakeChromaMap()
- type Color
- func (c Color) Chroma() float64
- func (c Color) Hue() float64
- func (c Color) Luminance() float64
- func (c *Color) SetChroma(chroma float64)
- func (c *Color) SetHue(hue float64)
- func (c *Color) SetLuminance(lum float64)
- func (c Color) ToLinearSRGB(useFallback bool) blcolor.Color
- func (c Color) ToSRGB(useFallback bool) blcolor.Color
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Color ¶
Color is an OKLab/OKLch color.
func FromRGBIntValues ¶ added in v0.9.2
FromRGBIntValues creates a new ok color from red, green and blue int values (0-255)
func FromRGBValues ¶
FromRGBValues creates a new ok color from red, green and blue values.
func (Color) Hue ¶ added in v0.9.2
Hue returns the hue of this color as an angle from 0 to 360 degrees.
func (*Color) SetLuminance ¶ added in v0.9.3
SetLuminance ...
func (Color) ToLinearSRGB ¶
ToLinearSRGB converts this ok color to a linear RGB color.
Click to show internal directories.
Click to hide internal directories.