colormap icon indicating copy to clipboard operation
colormap copied to clipboard

glsl-colormap

Open dy opened this issue 8 years ago • 6 comments

We can borrow some ideas from glsl-colormap, pretty nice collection.

dy avatar Aug 17 '16 19:08 dy

Definitely worth porting them all over

bpostlethwaite avatar Sep 28 '17 14:09 bpostlethwaite

@dfcreative so lets meet up and figure out how to script those colormaps and port them over into the JSON blobs we have here

bpostlethwaite avatar Oct 14 '17 04:10 bpostlethwaite

I can devote some time to it, that should not be difficult. Although @etpinard had an idea that maybe we better remove colormap from plotly dist, since we duplicate them as a constant.

dy avatar Oct 14 '17 04:10 dy

Can we just reuse https://github.com/plotly/plotly.js/blob/master/src/components/colorscale/make_color_scale_func.js

etpinard avatar Oct 16 '17 13:10 etpinard

@etpinard yep you only need the scales. I actually want to add this to the library independently from plotly.js. I didn't even realize plotly.js still used colormap

bpostlethwaite avatar Oct 16 '17 13:10 bpostlethwaite

Only gl3d surface and mesh3d uses colormap I believe. We should definitely keep it out of the regl2d rewrite.

etpinard avatar Oct 16 '17 13:10 etpinard