-
Notifications
You must be signed in to change notification settings - Fork 15
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
LEDs: add felony led effect #5
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, thanks for the PR, I was looking forward to people contributing effects, and nicely written, too.
Apologies for the long turnaround. I wanted to test this, and then I also thought about LED strips with an odd number of LEDs. The way it is one half of the effect will be longer. What about making the center LED always black to make it symmetric? Also, feel free to squash the second commit to the first and when making changes just amend the outstanding commit, I don't need to see the differences in separate ones. Lastly, would you add a line like this to your commit message, it's a git trailer and will ensure automatic changelog item (with an attribution to you):
Thank you! |
fae1f28
to
fae1ac9
Compare
I have some test footage I can upload here if you'd like. Unfortunately I only have LED strips with even numbers of LEDs, so I can't test out odd variations. But I did like your suggestion, so I implemented it.
Squashed, amended commit message with trailer and rebased on the latest trunk. 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only have LED strips with even numbers of LEDs, so I can't test out odd variations.
You can test it easily, just configure the strip with one less LED 😀
I'll try to test it myself tonight though.
Of course 🤦♂️ I tested it (at a slow speed even_green-gold.mp4odd_red-blue.mp4 |
This effect mimics the pattern of common emergency service vehicles. Its colors are configurable, as well as its speed via Refloat settings. In the case where the LED strip has an odd number of LEDs, the middle LED is kept as solid black to ensure the effect is symmetrical. Feature: Add the Felony LED effect.
Thank you! |
My kids found this effect amusing from the old
float
package, so I ported it over to this one, too!