Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradient Animation Request #43

Open
firepixie opened this issue Jun 12, 2020 · 4 comments
Open

Gradient Animation Request #43

firepixie opened this issue Jun 12, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@firepixie
Copy link

I'd love a gradient animation. I want to be able to select my colors (maybe 3-4, or maybe more for a whole palette). The colors should fade into each other seamlessly, and I want to be able to choose the period / number of LEDs per section. Then I'd want the whole thing to scroll along the strip and be able to choose the speed.

Gradient (pixels, speed=0.1, colors=(color.RED, color.BLUE, (0,200,10), 0XFF0000), period=5)

@rhooper
Copy link

rhooper commented Jun 26, 2020

@firepixie Do you have enough memory on the board(s) you want to use to import FancyLED? https://github.com/adafruit/Adafruit_CircuitPython_FancyLED

If yes, then I think this should be pretty easy to implement.

@evaherrada evaherrada added the enhancement New feature or request label Jun 30, 2020
@firepixie
Copy link
Author

firepixie commented Jul 1, 2020 via email

@firepixie
Copy link
Author

Following up on this - any way to get some sample code on how to use FancyLED to make gradients? :)

@dglaude
Copy link

dglaude commented Aug 19, 2020

In this thermal camera project, I use FancyLED to make gradients. This is a link to a version that does not require the thermal camera, so you could be able to test it: https://github.com/dglaude/CircuitPython_MLX90640_PyGamer_Plus/blob/master/fake_mlx90640_pygamer%2Bsd.py

In the published version in the learn guide, I do something similar without FancyLED (the credit/link for the code sample I used): https://learn.adafruit.com/adafruit-mlx90640-ir-thermal-camera/circuitpython-thermal-camera

I hope it help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants