colorlover icon indicating copy to clipboard operation
colorlover copied to clipboard

Convenience scale getter

Open davenquinn opened this issue 8 years ago • 0 comments

This library is awesome. I am wondering if you would be interested in a convenience function for getting the scale by name. It takes a little bit to inspect the dict to get the relevant scheme. A simple function that handles the scanning and integer conversion, with some helpful error messages, would make this super-usable. Something like

cl.get_scale('Purples', 10)
cl.get_scale('PuGr') # defaults to 5 divs

I'd be happy to code something up if you were willing to merge.

davenquinn avatar Jan 26 '18 02:01 davenquinn