FastLED 3.9.15
Loading...
Searching...
No Matches

◆ operator[]() [3/4]

CRGB & CRGBPalette32::operator[] ( uint8_t x)
inline

Array access operator to index into the gradient entries.

Parameters
xthe index to retrieve
Returns
reference to an entry in the palette's color array
Note
This does not perform any interpolation like ColorFromPalette(), it accesses the underlying entries that make up the gradient. Beware of bounds issues!

Definition at line 1551 of file colorutils.h.

1552 {
1553 return entries[x];
1554 }
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80
CRGB entries[32]
the color entries that make up the palette

References entries, and x.