Definition at line 129 of file Fire2023.ino.
129 {
130
131
132 uint16_t ctrl1 =
inoise16(11 * now, 0, 0);
133 uint16_t ctrl2 =
inoise16(13 * now, 100000, 100000);
134 uint16_t ctrl = ((ctrl1 + ctrl2) >> 1);
135
136
142
143
144 for (uint8_t x_count = 0; x_count <
WIDTH; x_count++) {
146 for (uint8_t y_count = 0; y_count <
HEIGHT; y_count++) {
150 }
151 }
152
153
159
160
161 for (uint8_t x_count = 0; x_count <
WIDTH; x_count++) {
163 for (uint8_t y_count = 0; y_count <
HEIGHT; y_count++) {
167 }
168 }
169
170
171 for (uint8_t
y = 0;
y <
HEIGHT - 1;
y++) {
172 for (uint8_t
x = 0;
x <
WIDTH;
x++) {
174 }
175 }
176
177
178 for (uint8_t
x = 0;
x <
WIDTH;
x++) {
180
181 }
182
183
184
185
186
187 for (uint8_t
y = 0;
y <
HEIGHT - 1;
y++) {
188 for (uint8_t
x = 0;
x <
WIDTH;
x++) {
190
192 dim = 255 - dim;
194
195
196
197
199
200
201
202
204
205 }
206 }
207}
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 ...
uint16_t XY(uint8_t x, uint8_t y)
CRGB ColorFromPalette(const CRGBPalette16 &pal, uint8_t index, uint8_t 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().