// Use the ColorFromPalette function to rotate through the rainbow by the colorIndex //ColorFromPalette( paletteName, colorIndex[0-255], brightness[0-255], blendType[NOBLEND or LINEARBLEND]) leds[j] = ColorFromPalette(RainbowColors_p, colorIndex, 255, LINEARBLEND); colorIndex += 15; // Increment the colorIndex to change the color for the next LED