I am trying to use line to transition between two values (0 and 254) in 3 different ways:
1. ramp up (0-254)
2. ramp down(254-0)
3. ramp up then down (0-254-0)
My inputs are two ints: the first to tell the type of ramp (0 = up,1 = down,2 = up then down) and the time to for the transition.
I kind of got it working, but I'm still a n00b and this feels a bit hacky/not very elegant
What would be the elegant way of achieving this ?