43 {
44 fl::span<CRGB>
leds = ctx.leds;
45 fl::u32 now = ctx.now;
47 return;
48 }
49
50
51 fl::u32 ms = now;
54 u16 speedfactor1 =
beatsin16(3, 179, 269);
55 u16 speedfactor2 =
beatsin16(4, 179, 269);
56 fl::u32 deltams1 = (deltams * speedfactor1) / 256;
57 fl::u32 deltams2 = (deltams * speedfactor2) / 256;
58 fl::u32 deltams21 = (deltams1 + deltams2) / 2;
63
64
66
67
68
79
80
82
83
85}
void pacifica_deepen_colors()
void pacifica_add_whitecaps()
CRGBPalette16 pacifica_palette_1
CRGBPalette16 pacifica_palette_3
CRGBPalette16 pacifica_palette_2
void pacifica_one_layer(fl::span< CRGB > leds, CRGBPalette16 &p, u16 cistart, u16 wavescale, u8 bri, u16 ioff)
LIB8STATIC u16 beat16(accum88 beats_per_minute, u32 timebase=0) FL_NOEXCEPT
Generates a 16-bit "sawtooth" wave at a given BPM.
LIB8STATIC u16 beatsin88(accum88 beats_per_minute_88, u16 lowest=0, u16 highest=65535, u32 timebase=0, u16 phase_offset=0) FL_NOEXCEPT
Generates a 16-bit sine wave at a given BPM that oscillates within a given range.
LIB8STATIC u8 beatsin8(accum88 beats_per_minute, u8 lowest=0, u8 highest=255, u32 timebase=0, u8 phase_offset=0) FL_NOEXCEPT
Generates an 8-bit sine wave at a given BPM that oscillates within a given range.
LIB8STATIC u16 beatsin16(accum88 beats_per_minute, u16 lowest=0, u16 highest=65535, u32 timebase=0, u16 phase_offset=0) FL_NOEXCEPT
Generates a 16-bit sine wave at a given BPM that oscillates within a given range.
void fill_solid(CRGB *targetArray, int numToFill, const CRGB &color)
Fill a range of LEDs with a solid color.