Interpolates colours in Srgb space. Probably really ugly, use OkLch space isntead.
const i = interpolator(`red`, `blue`);i(0.5); // Get 50% between these colours Copy
const i = interpolator(`red`, `blue`);i(0.5); // Get 50% between these colours
Interpolates colours in Srgb space. Probably really ugly, use OkLch space isntead.