Question for the advanced blade style programmers out there:
I want to create an effect that has a pixel LED slowly going from black to orangered to mimic a component slowly getting red hot.
In theory it’s simple enough, but the results aren’t quite as realisic as I’d like.
The issue seems to be that brightness increases are non-linear, so rather than the brightness emerging really slowly, it’s nothing, nothing, nothing, on quite a bit, then on full.
My code is below and I’ve set the duration to 40,000 which is already quite long.
I guess my question is can we build a style that accounts for the non-linearity of the LED? For instance, can we set it to go from Rgb<0,0,0> to Rgb<20,2,0> over 40,000 milliseconds, then Rgb<20,2,0> to Rgb<125,15,0> over 10,000 ms? Is there way of going up in stages like that? And would it work?
Any thoughts welcome.
Here’s the code I’ve been using: