Definition at line 139 of file Fire2023.h.
139 {
140
141
142 uint16_t ctrl1 =
inoise16(11 * now, 0, 0);
143 uint16_t ctrl2 =
inoise16(13 * now, 100000, 100000);
144 uint16_t ctrl = ((ctrl1 + ctrl2) >> 1);
145
146
152
153
154 for (uint8_t x_count = 0; x_count <
WIDTH; x_count++) {
156 for (uint8_t y_count = 0; y_count <
HEIGHT; y_count++) {
160 }
161 }
162
163
169
170
171 for (uint8_t x_count = 0; x_count <
WIDTH; x_count++) {
173 for (uint8_t y_count = 0; y_count <
HEIGHT; y_count++) {
177 }
178 }
179
180
181 for (uint8_t
y = 0;
y <
HEIGHT - 1;
y++) {
182 for (uint8_t
x = 0;
x <
WIDTH;
x++) {
184 }
185 }
186
187
188 for (uint8_t
x = 0;
x <
WIDTH;
x++) {
190
191 }
192
193
194
195
196
197 for (uint8_t
y = 0;
y <
HEIGHT - 1;
y++) {
198 for (uint8_t
x = 0;
x <
WIDTH;
x++) {
200
202 dim = 255 - dim;
204
205
206
207
209
210
211
212
214
215 }
216 }
217}
uint8_t noise[NUM_LAYERS][WIDTH][HEIGHT]
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.
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 ...
fl::u16 XY(fl::u8 x, fl::u8 y)
CRGB ColorFromPalette(const CRGBPalette16 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType)
References CentreX, CentreY, fl::ColorFromPalette(), FIRENOISE, FIRENOISESCALE, FIRESPEED, FLAMEHEIGHT, heat, HEIGHT, hotPalette, inoise16(), leds, noise, scale8(), scale_x, scale_y, SMOKENOISE, SMOKENOISE_DIMMER, SMOKENOISESCALE, SMOKESPEED, WIDTH, x, fl::XY(), y, and z.
Referenced by loop().