I am working on a function for smooth scrolling.

I am working on a function for smooth scrolling. Moving all by one led is not smooth - so I started to use fractions of 2 led values for the transition between the integer steps. Like 256 steps representing a ratio from 0:255 to 255:0 of the involved 2 colors.

And there comes the problem: If the content is a red led next to a “black” one it looks perfect. But if it is a red led next to a green led the blending creates all shades of yellow - which looks wrong.

Do you see a way to achieve a soft fractional scrolling for any kind of led content?

Maybe you could add black in between the red and yellow subdivisions?

I’ve done similar effects using a frame buffer (basically a copy of however many pixels you have.) The more buffers, the more weird and wonderful the effects that can be created. Anyway, I did a smooth scroll using a frame buffer and had the same problem, and ended up carefully choosing colour schemes to ‘look’ right. The problem is - it’s actually doing the right thing. Even if you rapidly flashed a red and green LED it would look yellow (in fact that’s how those old red/green/yellow LEDs from 30+ years ago used to work.)

Maybe use rgb blending of hsv?