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

◆ operator[]() [2/4]

const CRGB & CRGBPalette16::operator[] ( int x) const
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 1128 of file colorutils.h.

1129 {
1130 return entries[(uint8_t)x];
1131 }
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80
CRGB entries[16]
the color entries that make up the palette

References entries, and x.