Documentation
¶
Overview ¶
Package gradient provides color gradient interpolation shared by the style and fx packages. It lives under internal/ so that fx subpackages can use gradient math without importing the style package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Interpolate ¶
Interpolate computes the color at position t (0.0-1.0) along the given gradient stops using CIE-LCh blending for perceptually uniform transitions. Edge cases: empty -> white, single stop -> that color, t outside range -> clamp to nearest stop.
Types ¶
Click to show internal directories.
Click to hide internal directories.