Documentation
¶
Overview ¶
Package ok contains OKLab/OKLch color implementations
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Color ¶
type Color struct {
L, A, B float64
}
Color is an OKLab/OKLch color.
func FromRGBValues ¶
FromRGBValues creates a new ok color from red, green and blue values.
func (Color) ToLinearSRGB ¶
ToLinearSRGB converts this ok color to a linear RGB color.
Click to show internal directories.
Click to hide internal directories.