// 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
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter