45 {
46 CRGB *
leds = ctx.leds;
47 uint32_t now = ctx.now;
49 return;
50 }
51
52
53 uint32_t ms = now;
54 uint32_t deltams = ms -
sLastms;
56 uint16_t speedfactor1 =
beatsin16(3, 179, 269);
57 uint16_t speedfactor2 =
beatsin16(4, 179, 269);
58 uint32_t deltams1 = (deltams * speedfactor1) / 256;
59 uint32_t deltams2 = (deltams * speedfactor2) / 256;
60 uint32_t deltams21 = (deltams1 + deltams2) / 2;
65
66
68
69
70
81
82
84
85
87}
void pacifica_deepen_colors()
void pacifica_add_whitecaps()
CRGBPalette16 pacifica_palette_1
CRGBPalette16 pacifica_palette_3
CRGBPalette16 pacifica_palette_2
void pacifica_one_layer(CRGB *leds, CRGBPalette16 &p, uint16_t cistart, uint16_t wavescale, uint8_t bri, uint16_t ioff)
LIB8STATIC uint16_t beatsin16(accum88 beats_per_minute, uint16_t lowest=0, uint16_t highest=65535, uint32_t timebase=0, uint16_t phase_offset=0)
Generates a 16-bit sine wave at a given BPM that oscillates within a given range.
LIB8STATIC uint16_t beat16(accum88 beats_per_minute, uint32_t timebase=0)
Generates a 16-bit "sawtooth" wave at a given BPM.
LIB8STATIC uint8_t beatsin8(accum88 beats_per_minute, uint8_t lowest=0, uint8_t highest=255, uint32_t timebase=0, uint8_t phase_offset=0)
Generates an 8-bit sine wave at a given BPM that oscillates within a given range.
LIB8STATIC uint16_t beatsin88(accum88 beats_per_minute_88, uint16_t lowest=0, uint16_t highest=65535, uint32_t timebase=0, uint16_t phase_offset=0)
Generates a 16-bit sine wave at a given BPM that oscillates within a given range.
void fill_solid(struct CRGB *targetArray, int numToFill, const struct CRGB &color)
Fill a range of LEDs with a solid color.