|
FastLED 3.10.6
|
CHSVPalette32 entries stored in PROGMEM memory.
A distinct struct rather than another fl::u32[16] alias. When this was an array typedef it was the same type as TProgmemRGBPalette16 – the names documented an intent the compiler could not enforce – so an RGB progmem palette bound silently to every CHSV palette constructor and loadProgmemPalette(CHSV*, ...) copied red/green/blue straight into hue/sat/val. Reported as FastLED#807 in 2019.
The implicit conversion keeps every legitimate use working unchanged: brace initialisation, pal[i] indexing, and passing one where a const fl::u32 * is expected. Only the unsafe direction is now rejected, because a bare fl::u32[16] will no longer convert to this type.
Definition at line 33 of file colorutils_misc.h.
#include <colorutils_misc.h>
Public Member Functions | |
| operator const fl::u32 * () const FL_NO_EXCEPT | |
Public Attributes | |
| fl::u32 | entries [32] |