Changing over time like the web api
Benjiinator opened this issue · comments
I'm working on a project where when i score in the game "Rocket League" i trigger my lights into a matching team color. So far i've succefully made it using the web api, though it's a bit slow, so i want to get it going over lan.
In the web api i can call a function that changes the hue over time smoothly, though i can't seem to find anything like that with your library.
This is what it looks like in action, it changes slowly back to the color it was before scoring: https://imgur.com/a/FjoSa
SetColorAsync() has a TimeSpan parameter which can be passed to it. This is probably what you’re looking for as you can just pass Timespan.FromSeconds(5); to create a transition.
This was exactly what i was looking for :)