FastLED 3.7.8
Loading...
Searching...
No Matches
TRGBGradientPaletteEntryUnion Union Reference

Detailed Description

Struct for digesting gradient pointer data into its components.

This is used when loading a gradient stored in PROGMEM or on the heap into a palette. The pointer is dereferenced and interpreted as this struct, so the component parts can be addressed and copied by name.

Definition at line 606 of file colorutils.h.

#include <colorutils.h>

Public Attributes

struct { 
 
   uint8_t   index 
 index of the color entry in the gradient More...
 
   uint8_t   r 
 CRGB::red channel value of the color entry. More...
 
   uint8_t   g 
 CRGB::green channel value of the color entry. More...
 
   uint8_t   b 
 CRGB::blue channel value of the color entry. More...
 
};  
 
uint32_t dword
 values as a packed 32-bit double word
 
uint8_t bytes [4]
 values as an array
 

Member Data Documentation

◆ b

uint8_t TRGBGradientPaletteEntryUnion::b

CRGB::blue channel value of the color entry.

Definition at line 611 of file colorutils.h.

◆ bytes

uint8_t TRGBGradientPaletteEntryUnion::bytes[4]

values as an array

Definition at line 614 of file colorutils.h.

◆ dword

uint32_t TRGBGradientPaletteEntryUnion::dword

values as a packed 32-bit double word

Definition at line 613 of file colorutils.h.

◆ g

uint8_t TRGBGradientPaletteEntryUnion::g

CRGB::green channel value of the color entry.

Definition at line 610 of file colorutils.h.

◆ index

uint8_t TRGBGradientPaletteEntryUnion::index

index of the color entry in the gradient

Definition at line 608 of file colorutils.h.

◆ r

uint8_t TRGBGradientPaletteEntryUnion::r

CRGB::red channel value of the color entry.

Definition at line 609 of file colorutils.h.


The documentation for this union was generated from the following file: