-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmocean color interpolators? #27
Comments
One can retrieve the color schemes directly from https://github.com/mikeperrins/cmocean-LUT-ImageJ:
(see https://observablehq.com/@fil/cmocean ) the next step would be to extract key colors for the spline interpolation: |
The monotone RGB interpolation on 11 evenly-spaced control points is almost perfect for: Algae, Amp, Delta, Dense, Gray, Ice, Matter, Solar, Speed, Tempo, Thermal, Turbid. For Haline, Phase we might need a few more control points or adjustments. For Balance, Curl, Deep, Oxy, however, the interpolation strategy can't reproduce the brutal transitions, and it will need a bit more work (cutting each of them in two or three parts interpolated separately then rejoined), or we could have them as a 256-color array, depending on which approach gives the smallest file size(?). |
See also https://observablehq.com/@fil/cmasher for the CMasher collection (https://cmasher.readthedocs.io/) |
And colorcet: https://observablehq.com/@fil/colorcet Collection of color schemes: https://observablehq.com/collection/@fil/color-schemes |
Mike:
(from d3/d3-scale#71)
The text was updated successfully, but these errors were encountered: