I'm looking at some Arduino code and encountering a construct I haven't seen before:
CRGBPalette16 currentPalette( CRGB::Black );
CRGB::Black is a constant, which, as some have pointed out is a number.
Later on in the code the author appears to write directly to currentPalette (or other similar variables) like this: currentPalette[12] = CRGB::Black;
Is currentPalette an object instance? If so then how can you access it as if it were an array?
CRGB::Blackis actually a struct and not an enum constant?mainmethod).CRGB::Blackis a number, not a struct. There are many constructors forCRGBPalette16, with varying numbers of parameters. Related: FastLED reference.