FastLED 3.9.3
Loading...
Searching...
No Matches
twinklefox.hpp File Reference

Detailed Description

Twinkling "holiday" lights that fade in and out.

Definition in file twinklefox.hpp.

#include "FastLED.h"
#include "fx/fx1d.h"
#include "namespace.h"

Go to the source code of this file.

Classes

class  TwinkleFox
 

Macros

#define TWINKLE_SPEED   4
 
#define TWINKLE_DENSITY   5
 
#define SECONDS_PER_PALETTE   30
 
#define AUTO_SELECT_BACKGROUND_COLOR   0
 
#define COOL_LIKE_INCANDESCENT   1
 

Functions

 FASTLED_SMART_REF (TwinkleFox)
 

Variables

const TProgmemRGBPalette16 RedGreenWhite_p
 
const TProgmemRGBPalette16 Holly_p
 
const TProgmemRGBPalette16 RedWhite_p
 
const TProgmemRGBPalette16 BlueWhite_p
 
const TProgmemRGBPalette16 FairyLight_p
 
const TProgmemRGBPalette16 Snow_p
 
const TProgmemRGBPalette16 RetroC9_p
 
const TProgmemRGBPalette16 Ice_p
 
const TProgmemRGBPalette16ActivePaletteList []
 

Macro Definition Documentation

◆ AUTO_SELECT_BACKGROUND_COLOR

#define AUTO_SELECT_BACKGROUND_COLOR   0

Definition at line 102 of file twinklefox.hpp.

◆ COOL_LIKE_INCANDESCENT

#define COOL_LIKE_INCANDESCENT   1

Definition at line 107 of file twinklefox.hpp.

◆ SECONDS_PER_PALETTE

#define SECONDS_PER_PALETTE   30

Definition at line 96 of file twinklefox.hpp.

◆ TWINKLE_DENSITY

#define TWINKLE_DENSITY   5

Definition at line 93 of file twinklefox.hpp.

◆ TWINKLE_SPEED

#define TWINKLE_SPEED   4

Definition at line 88 of file twinklefox.hpp.

Variable Documentation

◆ ActivePaletteList

const TProgmemRGBPalette16* ActivePaletteList[]
Initial value:
= {
&RetroC9_p, &BlueWhite_p, &RainbowColors_p, &FairyLight_p,
&RedGreenWhite_p, &PartyColors_p, &RedWhite_p, &Snow_p,
&Holly_p, &Ice_p}
const TProgmemRGBPalette16 PartyColors_p
HSV color ramp: blue, purple, pink, red, orange, yellow (and back).
const TProgmemRGBPalette16 RainbowColors_p
HSV Rainbow.

Definition at line 296 of file twinklefox.hpp.

◆ BlueWhite_p

◆ FairyLight_p

const TProgmemRGBPalette16 FairyLight_p
Initial value:
= {
CRGB(CRGB::FairyLight).nscale8_constexpr(uint8_t(128)).as_uint32_t(),
CRGB(CRGB::FairyLight).nscale8_constexpr(uint8_t(128)).as_uint32_t(),
CRGB(CRGB::FairyLight).nscale8_constexpr(64).as_uint32_t(),
CRGB(CRGB::FairyLight).nscale8_constexpr(64).as_uint32_t(),
@ FairyLight
Definition crgb.h:624
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:39

Definition at line 261 of file twinklefox.hpp.

◆ Holly_p

const TProgmemRGBPalette16 Holly_p
Initial value:
= {
0x00580c, 0x00580c, 0x00580c, 0x00580c, 0x00580c, 0x00580c,
0x00580c, 0x00580c, 0x00580c, 0x00580c, 0x00580c, 0x00580c,
0x00580c, 0x00580c, 0x00580c, 0xB00402}

Definition at line 246 of file twinklefox.hpp.

◆ Ice_p

const TProgmemRGBPalette16 Ice_p
Initial value:
= {
0x0C1040, 0x0C1040, 0x0C1040, 0x0C1040, 0x0C1040, 0x0C1040,
0x0C1040, 0x0C1040, 0x0C1040, 0x0C1040, 0x0C1040, 0x0C1040,
0x182080, 0x182080, 0x182080, 0x5080C0}

Definition at line 289 of file twinklefox.hpp.

◆ RedGreenWhite_p

◆ RedWhite_p

◆ RetroC9_p

const TProgmemRGBPalette16 RetroC9_p
Initial value:
= {
0xB80400, 0x902C02, 0xB80400, 0x902C02, 0x902C02, 0xB80400,
0x902C02, 0xB80400, 0x046002, 0x046002, 0x046002, 0x046002,
0x070758, 0x070758, 0x070758, 0x606820}

Definition at line 284 of file twinklefox.hpp.

◆ Snow_p

const TProgmemRGBPalette16 Snow_p
Initial value:
= {
0x304048, 0x304048, 0x304048, 0x304048, 0x304048, 0x304048,
0x304048, 0x304048, 0x304048, 0x304048, 0x304048, 0x304048,
0x304048, 0x304048, 0x304048, 0xE0F0FF}

Definition at line 279 of file twinklefox.hpp.