You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SEGMENT.setPixelColorXY(j, i, ColorFromPalette(SEGPALETTE, min(i*(indexx)>>4, 255), i*255/cols, LINEARBLEND)); // With that value, look up the 8 bit colour palette value and assign it to the current LED.
4877
+
indexx = inoise8(j*yscale*rows/255, i*xscale+strip.now/4);// We're moving along our Perlin map.
4878
+
SEGMENT.setPixelColorXY(j, i, ColorFromPalette(pal, min(i*(indexx)>>4, 255U), i*255/cols, LINEARBLEND)); // With that value, look up the 8 bit colour palette value and assign it to the current LED.
if (pal < 245 && pal > GRADIENT_PALETTE_COUNT+13) pal = 0;
204
-
if (pal > 245 && (strip.customPalettes.size() == 0 || 255U-pal > strip.customPalettes.size()-1)) pal = 0;
205
+
if (pal > 245 && (strip.customPalettes.size() == 0 || 255U-pal > strip.customPalettes.size()-1)) pal = 0;// TODO remove strip dependency by moving customPalettes out of strip
205
206
//default palette. Differs depending on effect
206
207
if (pal == 0) switch (mode) {
207
208
caseFX_MODE_FIRE_2012 : pal = 35; break; // heat palette
0 commit comments