How it works
Vec4 stores colour as (r, g, b, a) in 0–1 space. Vec4.lerp(a, b, t) blends each channel. The easing strips above apply timing curves to t before lerping — all still in sRGB, so the midpoint can look muddy.
The colour-space strips below convert to a perceptually uniform space first. Gamma-correct linearises sRGB before blending. Oklab works in a space designed to match human perception — no muddy grey midpoints. Oklch is Oklab in polar form, lerping hue angle via the shortest arc for natural colour wheel transitions.