ColorToVector
Animates a Color as a four-dimensional vector of its alpha and its three Oklab coordinates.
A color is read and written as eight-bit sRGB components but interpolated in Oklab, where equal steps look like equal changes. Interpolating sRGB components directly gives ramps that look too dark or washed out. A color in another color space is read through its sRGB components and comes back as an sRGB color.
Every component is clamped, not wrapped, on the way back: a spring overshoots its target, and Oklab describes colors that sRGB cannot show. An overshooting animation settles against black, white or the edge of the gamut.