jsvine / spectra

Easy color scales and color conversion for Python.
http://nbviewer.ipython.org/github/jsvine/spectra/blob/master/docs/walkthrough.ipynb
MIT License
257 stars 12 forks source link

Implement classes option for scale #15

Closed mazznoer closed 4 years ago

mazznoer commented 4 years ago

Something like chroma.js

chroma.scale(['red', 'black']).classes(7)

Sorry for my broken english.

jsvine commented 4 years ago

This seems like a reasonable feature to add; thanks for suggesting it. If you, or anyone else, would like to implement it, feel free to submit a pull request.

Reference: https://gka.github.io/chroma.js/#scale-classes