-
Notifications
You must be signed in to change notification settings - Fork 44
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
Updating brightness mid-animation #65
Comments
Would also like a way to adjust the speed within the while True loop. |
I took a look into this, having a The closest thing that you can do today, and the way I would probably recomend to approach the behavior noted is by accessing the color of the PixelSubset that is running the Pulse animation.
I'm going to close because I think it would be quite tricky to implement, and ultimately will give you the basic information as accessing the color of the pixels could do today without any changes. With regards to @steveof2620's comment: I have submitted #123 to add |
Any idea how difficult it would be to make it easier to update the brightness of the animation once it has been created? I'm using a
RainbowComet
animation with aPixelSubset
. While that's running I also have a customizedPulse
animation running on another subset of pixels. Aspulse.draw()
is called I keep track of the current brightness level so that my other LEDs can change as well.I'd like the brightness of the
RainbowComet
animation to be in sync with that of my customizedPulse
animation. To do that, I created a slightly customizedRainbowComet
class that overrides thedraw
method to use the current brightness:I tried
animation._pixel_object.brightness
but that ended poorly.The text was updated successfully, but these errors were encountered: