Hello FastLED User. As I have stated numerous times I'm very new to programming

Hello FastLED User. As I have stated numerous times I’m very new to programming and Arduino. I am using the ColorPalette Code from this amazing library for a school project.

I have been playing around with the code and switching around values and other tings to see what they do to the pixels on my strip. While this for the most part is teaching me some things. It also raises a lot of questions. Simply put, here is one of those questions.

In the Colorpalette Example On line 67 What does changing the Number 3 Specifically do? Here is the GITHUB Link.

While trying to achieve some specific results with a 32 strip LED I changed this number and Got a few different results. For my use It seems changing this number is the way to go.

I am Trying to get 8 colors with NOBLEND Scrolling across my strip with each specific color being 4 LEDs Long. No Spaces Just Scrolling evenly with the 4 LEDs So Is that considered 8 Palettes? Ill try to put an Example Down Below as Best I can.

RRRRBBBBGGGGWWWWYYYYOOOOPPPPAAAA =Strip of 32 LEDs
R=Red B=Blue G=Green W=White Y=Orange P=Purple A=Aqua

I do know how to build Palettes thanks to the Example Provided but Getting this Specific setup is seeming beyond me ATM.

@Erin_Jordan I’m too new at this to answer that level of question – but needed to say +1 on your "I have been playing around with the code and switching around values and other things to see what they do to the pixels on my strip. "

As to line 67, I’ll do my best:

Think of a palette as a 1 dimensional array (0 to 255 and back to 0 again). Also think of your LED’s as a one dimensional array. When you display your palette on the LED’s, you are copying from one array to another. Line 67 just increments a count to the starting point of where you’re copying from the palette array over to the LED array, which is how the pattern moves between sequences.

Last Night before Bed I was able to get my desired results by switching the number on line 67 to 16. So I have been Trying to do some digging and see why.
Thanks for your responses I am Really trying to learn this…lol

The end comment explains why you’re seeing this. Each palette is expanded (from 16) as though it were a 256 entry palette.