32#define CentreX (WIDTH / 2) - 1
33#define CentreY (HEIGHT / 2) - 1
38#define LAST_VISIBLE_LED 119
44#define FLAMEHEIGHT 3.8
45#define FIRENOISESCALE 125
54#define SMOKENOISE_DIMMER 250
55#define SMOKENOISESCALE 125
74uint8_t
XY (uint8_t
x, uint8_t
y);
120 for (uint16_t
y = 0;
y <
WIDTH;
y++) {
122 vec2f xy = {float(
x) * 3, float(
y) * 20};
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);
144 for (uint8_t x_count = 0; x_count <
WIDTH; x_count++) {
146 for (uint8_t y_count = 0; y_count <
HEIGHT; y_count++) {
161 for (uint8_t x_count = 0; x_count <
WIDTH; x_count++) {
163 for (uint8_t y_count = 0; y_count <
HEIGHT; y_count++) {
171 for (uint8_t
y = 0;
y <
HEIGHT - 1;
y++) {
172 for (uint8_t
x = 0;
x <
WIDTH;
x++) {
178 for (uint8_t
x = 0;
x <
WIDTH;
x++) {
187 for (uint8_t
y = 0;
y <
HEIGHT - 1;
y++) {
188 for (uint8_t
x = 0;
x <
WIDTH;
x++) {
210uint8_t
XY (uint8_t
x, uint8_t
y) {
216 const uint8_t XYTable[] = {
248 uint8_t j = XYTable[i];
CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
uint8_t noise[NUM_LAYERS][WIDTH][HEIGHT]
ScreenMap makeScreenMap()
uint8_t noise2[NUM_LAYERS][WIDTH][HEIGHT]
uint32_t scale_y[NUM_LAYERS]
#define SMOKENOISE_DIMMER
void Fire2023(uint32_t now)
uint32_t scale_x[NUM_LAYERS]
unsigned int xy(unsigned int x, unsigned int y)
LED controller for WS2812 LEDs with GRB color order.
void push_back(const T &value)
#define DEFINE_GRADIENT_PALETTE(X)
Defines a static RGB palette very compactly using a series of connected color gradients.
#define DISABLE_DITHER
Disable dithering.
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 ...
#define EVERY_N_MILLISECONDS(N)
Alias for EVERY_N_MILLIS.
uint16_t XY(uint8_t x, uint8_t y)
CRGB ColorFromPalette(const CRGBPalette16 &pal, uint8_t index, uint8_t brightness, TBlendType blendType)
Implements a simple red square effect for 2D LED grids.
Representation of an RGB pixel (Red, Green, Blue)