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 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) ToLinearSRGB ¶
ToLinearSRGB converts this ok color to a linear RGB color.
Click to show internal directories.
Click to hide internal directories.