pimoroni / mote

Mote - drivers for the plug and play USB APA102 controller
https://shop.pimoroni.com/products/mote
MIT License
24 stars 14 forks source link

Create soft_cheerlights.py #9

Closed Godzil closed 7 years ago

Godzil commented 7 years ago

This version have smooth transition when colours changes, making is much nicer to the eyes!

Gadgetoid commented 7 years ago

Good stuff. It would be interesting to see a version that fades directly from one RGB colour to another, rather than translating to the HSV colour space and moving around hue. There's some good discussion of such a thing here: http://stackoverflow.com/questions/21835739/smooth-color-transition-algorithm

Godzil commented 7 years ago

That was on purpose the transition using the Hue, but you have a point, I have some code to do colour gradient, I will look if I can add an option for that :)