Has anyone come up with anything better than this? (I am not saying this is good in any way!)
Using a floating point number to assign colour to an LED — so if you set the position as something like 34.5 then 34 and 35 are half lit. Trying to get a “softer” transition when moving “pixels” on a strip of LEDs.
you can use other mechanisms to slide between the two values - but basically, frac is a value that indicates how much to remove of the passed in color for the first physical led and how much to keep of the passed in color for the second physical led.
@Mark_Kriegsman and I have been doing a lot of talking about containers for accessing sets of leds that would provide for things like fractional access, rotation, 2d mapping, etc… Getting an interface together that’s high performant, easy to use/understand, and general enough for what the bulk of the people using it would be doing is … well, an art
(My personal version of a library doing this stuff is currently on its 3rd complete rewrite)