Colorloop effect speed tuning

I need to modify Colorloop speed. At minimum speed it’s still too fast. I’m able to load and compile source code in Arduino IDE but I cannot find the “Colorloop” function in the code.

Can you give me an hint?

i think it’s called mode_rainbow in wled00/FX.cpp.

Thanks so much for your reply!

I think speed parameter affects “counter” variable here:

uint16_t counter = (now * ((SEGMENT.speed >> 2) +2)) & 0xFFFF;
counter = counter >> 8;

I tried to play with this counter variable but with no luck.
uint16_t counter = (now * ((SEGMENT.speed >> 4) +2)) & 0xFFFF;
The formula it is not clear at all to me.