Definition at line 127 of file Fire2023.ino.
127 {
128
129
130 uint16_t ctrl1 =
inoise16(11 * now, 0, 0);
131 uint16_t ctrl2 =
inoise16(13 * now, 100000, 100000);
132 uint16_t ctrl = ((ctrl1 + ctrl2) >> 1);
133
134
140
141
142 for (uint8_t x_count = 0; x_count <
WIDTH; x_count++) {
144 for (uint8_t y_count = 0; y_count <
HEIGHT; y_count++) {
148 }
149 }
150
151
157
158
159 for (uint8_t x_count = 0; x_count <
WIDTH; x_count++) {
161 for (uint8_t y_count = 0; y_count <
HEIGHT; y_count++) {
165 }
166 }
167
168
169 for (uint8_t
y = 0;
y <
HEIGHT - 1;
y++) {
170 for (uint8_t
x = 0;
x <
WIDTH;
x++) {
172 }
173 }
174
175
176 for (uint8_t
x = 0;
x <
WIDTH;
x++) {
178
179 }
180
181
182
183
184
185 for (uint8_t
y = 0;
y <
HEIGHT - 1;
y++) {
186 for (uint8_t
x = 0;
x <
WIDTH;
x++) {
188
190 dim = 255 - dim;
192
193
194
195
197
198
199
200
202
203 }
204 }
205}
uint8_t noise[NUM_LAYERS][WIDTH][HEIGHT]
uint8_t XY(uint8_t x, uint8_t y)
uint32_t scale_y[NUM_LAYERS]
#define SMOKENOISE_DIMMER
uint32_t scale_x[NUM_LAYERS]
uint16_t inoise16(uint32_t x, uint32_t y, uint32_t z, uint32_t t)
16-bit, fixed point implementation of Perlin's noise.
@ LINEARBLEND
Linear interpolation between palette entries, with wrap-around from end to the beginning again.
CRGB ColorFromPalette(const CRGBPalette16 &pal, uint8_t index, uint8_t brightness, TBlendType blendType)
Get a color from a palette.
LIB8STATIC_ALWAYS_INLINE uint8_t scale8(uint8_t i, fract8 scale)
Scale one byte by a second one, which is treated as the numerator of a fraction whose denominator is ...
References CentreX, CentreY, ColorFromPalette(), FIRENOISE, FIRENOISESCALE, FIRESPEED, FLAMEHEIGHT, heat, HEIGHT, hotPalette, inoise16(), leds, LINEARBLEND, noise, scale8(), scale_x, scale_y, SMOKENOISE, SMOKENOISE_DIMMER, SMOKENOISESCALE, SMOKESPEED, WIDTH, x, XY(), y, and z.
Referenced by loop().