- Examples
- NoisePlusPalette.ino.
Definition at line 148 of file NoisePlusPalette.ino.
149{
150 static uint8_t ihue=0;
151
154
155
156
157
158 uint8_t index =
noise[j][i];
159 uint8_t bri =
noise[i][j];
160
161
163 index += ihue;
164 }
165
166
167
168 if( bri > 127 ) {
169 bri = 255;
170 } else {
172 }
173
176 }
177 }
178
179 ihue+=1;
180}
CRGBPalette16 currentPalette
uint8_t noise[NUM_LAYERS][WIDTH][HEIGHT]
uint16_t XY(uint8_t x, uint8_t y)
LIB8STATIC uint8_t dim8_raw(uint8_t x)
Adjust a scaling value for dimming.
CRGB ColorFromPalette(const CRGBPalette16 &pal, uint8_t index, uint8_t brightness, TBlendType blendType)
Get a color from a palette.
Representation of an RGB pixel (Red, Green, Blue)
References ColorFromPalette(), colorLoop, currentPalette, dim8_raw(), kMatrixHeight, kMatrixWidth, leds, noise, and XY().
Referenced by fl::NoisePalette::draw(), and loop().