Philippe Rivière
Philippe Rivière
Ref https://github.com/d3/d3-time-format/pull/12
I didn't understand how to use it, so I fiddled in another branch #296
Related, something that is sometimes useful and I never really know how to do well is [wrap](https://api.jquery.com/wrap/).
I'm sharing a lot of color schemes in this collection: https://observablehq.com/collection/@fil/color-schemes I think the implementation in https://observablehq.com/@fil/cmocean?collection=@fil/color-schemes is very similar to what's needed here?
Besides optimization, the benefit (as I understand it) would be a more straightforward expression of intent in that quite common case; a drawback might be that this new method doesn't...
built here https://observablehq.com/d/e9aa5c89fc7d6f9c if someone wants to test things (feel free to send suggestions) On my screen and with my eyes, I don't *see* any difference, in fact I don't...
One can retrieve the color schemes directly from https://github.com/mikeperrins/cmocean-LUT-ImageJ: ~~~{js} const lut = name => d3.tsv( `https://raw.githubusercontent.com/mikeperrins/cmocean-LUT-ImageJ/master/${name}.lut`, d => d3.rgb(d["Red"], d["Green"], d["Blue"]) ) .then(l => t => l[(t * 256)...
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...
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