FastLED 3.9.15
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages

◆ operator[]() [2/2]

FASTLED_FORCE_INLINE const uint8_t & CRGB::operator[] ( uint8_t x) const
inline

Array access operator to index into the CRGB object.

Parameters
xthe index to retrieve (0-2)
Returns
the CRGB::raw value for the given index

Definition at line 97 of file crgb.h.

98 {
99 return raw[x];
100 }
int x
Definition Audio.ino:71

References FASTLED_FORCE_INLINE, and x.