Skip to content

Conversation

JovialJuggernaut
Copy link
Contributor

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

jt-jovial added 2 commits May 14, 2018 15:04
Adds HLS to RGB and HSV to RGB support via standard library colorsys module
@tannewt
Copy link
Member

tannewt commented May 14, 2018

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

@JovialJuggernaut
Copy link
Contributor Author

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 tannewt self-assigned this May 15, 2018
@tannewt
Copy link
Member

tannewt commented May 17, 2018

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
Copy link
Contributor Author

Will that work?

Thanks!

@tannewt
Copy link
Member

tannewt commented May 17, 2018

Yup! Looks great! Thanks!

@tannewt tannewt merged commit 96c0991 into adafruit:master May 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants