|
|
|
|
|
by raphlinus
1913 days ago
|
|
Interpolate in a perceptual space such as Oklab? Possibly use a radial basis function for interpolation rather than triangles? I don't have JavaScript code handy but rbf-interp[1] is Rust code that could either be adapted or called from wasm. [1]: https://crates.io/crates/rbf-interp |
|
A better color space can also help with some issues (in the demo the darker colors are harder to reach when blending with the black point than lighter colors are when the white point is involved) but how I understand it the colors in a triangle are influenced by the colors and shapes of the surrounding triangles, whatever the color space.
I must say that I'm very happy to have had your input on this. I'm a big fan of your work and your blog is a real treasure!
Thank you!