adafruit / Adafruit_CircuitPython_Colorsys

CircuitPython CPython compatible libraries
MIT License
0 stars 7 forks source link

Implements colorsys from the standard library to add HLS and HSV to RGB support #1

Closed JovialJuggernaut closed 6 years ago

JovialJuggernaut commented 6 years ago

Will return tuple of RGB[0-255] values.

tannewt commented 6 years ago

Is this code from somewhere else or did you write it? We should make sure and keep the license info on it.

JovialJuggernaut commented 6 years ago

It's a couple functions ripped out of colorsys.py in the anaconda3/lib folder. It didn't have the license info in the script itself.

tannewt commented 6 years ago

Looks like its from CPython: https://github.com/python/cpython/blob/3.4/Lib/colorsys.py

Please add a comment saying so and refer to the license here: https://github.com/python/cpython/blob/3.4/LICENSE

Thank you!

JovialJuggernaut commented 6 years ago

Will that work?

Thanks!

tannewt commented 6 years ago

Yup! Looks great! Thanks!