bpostlethwaite / colormap

output rgb or hex colormaps
MIT License
223 stars 33 forks source link

glsl-colormap #8

Open dy opened 8 years ago

dy commented 8 years ago

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

bpostlethwaite commented 7 years ago

Definitely worth porting them all over

bpostlethwaite commented 6 years ago

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

dy commented 6 years ago

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.

etpinard commented 6 years ago

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

bpostlethwaite commented 6 years ago

@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

etpinard commented 6 years ago

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