53#define SERPENTINE true
100 Serial.begin(115200);
124 uint16_t
z = millis32 /
invSpeedZ.as<uint16_t>();
128 uint16_t noise16 =
inoise16(
x << 8,
y << 8,
z << 8);
131 uint8_t noise_val = noise16 >> 8;
141 return qsub8(noise_val, subtraction_factor);
150 return electricGreenFirePal;
152 return electricBlueFirePal;
168 uint32_t now = millis();
177 for (
int i = 0; i <
WIDTH; i++) {
178 for (
int j = 0; j <
HEIGHT; j++) {
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
TimeWarp timeScale(0, 1.0f)
UINumberField palette("Palette", 0, 0, 2)
UISlider scaleXY("Scale", 8, 1, 100, 1)
UISlider speedY("SpeedY", 1.3, 1, 6,.1)
UISlider invSpeedZ("Inverse SpeedZ", 20, 1, 100, 1)
CRGBPalette16 getPalette()
TimeWarp timeScale(0, 1.0f)
UISlider speedY("SpeedY", 1, 1, 6,.1)
UINumberField palette("Palette", 0, 0, 2)
uint8_t getPaletteIndex(uint32_t millis32, int i, int j, uint32_t y_speed)
UISlider invSpeedZ("Inverse SpeedZ", 20, 1, 100, 1)
UISlider scaleXY("Scale", 20, 1, 100, 1)
UISlider brightness("Brightness", 1, 0, 1)
LED controller for WS2812 LEDs with GRB color order.
void setDiameter(float diameter)
#define DEFINE_GRADIENT_PALETTE(X)
Defines a static RGB palette very compactly using a series of connected color gradients.
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
LIB8STATIC_ALWAYS_INLINE int8_t abs8(int8_t i)
Take the absolute value of a signed 8-bit uint8_t.
LIB8STATIC_ALWAYS_INLINE uint8_t qsub8(uint8_t i, uint8_t j)
Subtract one byte from another, saturating at 0x00.
uint16_t inoise16(uint32_t x, uint32_t y, uint32_t z, uint32_t t)
16-bit, fixed point implementation of Perlin's noise.
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)