FastLED 3.9.7
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 670 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 675 of file colorutils.h.

◆ bytes

uint8_t TRGBGradientPaletteEntryUnion::bytes[4]

values as an array

Definition at line 678 of file colorutils.h.

◆ dword

uint32_t TRGBGradientPaletteEntryUnion::dword

values as a packed 32-bit double word

Definition at line 677 of file colorutils.h.

◆ g

uint8_t TRGBGradientPaletteEntryUnion::g

CRGB::green channel value of the color entry.

Definition at line 674 of file colorutils.h.

◆ index

uint8_t TRGBGradientPaletteEntryUnion::index

index of the color entry in the gradient

Definition at line 672 of file colorutils.h.

◆ r

uint8_t TRGBGradientPaletteEntryUnion::r

CRGB::red channel value of the color entry.

Definition at line 673 of file colorutils.h.


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