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

◆ operator[]() [2/4]

const CHSV & CHSVPalette16::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 806 of file colorutils.h.

807 {
808 return entries[(uint8_t)x];
809 }
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80
CHSV entries[16]
the color entries that make up the palette
Definition colorutils.h:729

References entries, and x.