RGB Leds Crossfade
-
Hi
I'm trying to get a string of leds to crossfade from one colour to another.
I've got the start and end colours as RGB values in 6 variables, can get them to flash from to other ok, but stuck
on how to get them to slowly crossfade from to other. Any pointers? I'm a total beginner with UiFlow. Thanks -
This is not an Uiflow specific solution. Try as following:
- Decide how many steps you want from start color to end color. e.g. 10 steps
- find the step size from start to end color e.g. you want from value 100 to 200 (difference / steps) = step size 10.
- loop for the number of steps and increase/decrease the value with the calculated step size.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login