Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cam16Ucs ¶
Cam16Ucs returns a color interpolated between two colors in CAM16-UCS space. All perceptual attributes (hue, chroma, tone) are blended linearly based on amount, where 0.0 yields from and 1.0 yields to.
func Harmonize ¶
Harmonize returns a color whose hue is shifted toward the hue of sourceColor. The hue of designColor is rotated by up to 15 degrees toward sourceColor, while preserving its original chroma and tone.
func HctHue ¶
HctHue returns a color with its hue blended toward another color in HCT space. The chroma and tone of from are preserved. The amount must be in [0.0, 1.0], where 0.0 yields from and 1.0 yields to.
func HctHueDirect ¶
HctHueDirect returns a color with its hue blended toward another color in HCT space. The chroma and tone of from are preserved. The amount must be in [0.0, 1.0], where 0.0 yields from and 1.0 yields to. Returns Hct representation of new color.
Types ¶
This section is empty.