FastLED 3.9.13
Loading...
Searching...
No Matches
fl::Pixel Struct Reference

Detailed Description

Definition at line 77 of file ___pixeltypes.h.

Public Member Functions

 Pixel (uint8_t r, uint8_t g, uint8_t b)
 
 Pixel (const Pixel &rhs)
 
Pixeloperator= (const uint32_t colorcode)
 
bool operator== (const Pixel &rhs)
 
bool operator!= (const Pixel &rhs)
 

Public Attributes

union { 
 
   uint8_t   raw [3] 
 
   struct { 
 
      uint8_t   red 
 
      uint8_t   green 
 
      uint8_t   blue 
 
   }  
 
};  
 

Constructor & Destructor Documentation

◆ Pixel() [1/3]

fl::Pixel::Pixel ( uint8_t r,
uint8_t g,
uint8_t b )
inline

Definition at line 87 of file ___pixeltypes.h.

◆ Pixel() [2/3]

fl::Pixel::Pixel ( )
inline

Definition at line 92 of file ___pixeltypes.h.

◆ Pixel() [3/3]

fl::Pixel::Pixel ( const Pixel & rhs)
inline

Definition at line 114 of file ___pixeltypes.h.

Member Function Documentation

◆ operator!=()

bool fl::Pixel::operator!= ( const Pixel & rhs)
inline

Definition at line 131 of file ___pixeltypes.h.

◆ operator=()

Pixel & fl::Pixel::operator= ( const uint32_t colorcode)
inline

Definition at line 120 of file ___pixeltypes.h.

◆ operator==()

bool fl::Pixel::operator== ( const Pixel & rhs)
inline

Definition at line 128 of file ___pixeltypes.h.

Member Data Documentation

◆ blue

uint8_t fl::Pixel::blue

Definition at line 83 of file ___pixeltypes.h.

◆ green

uint8_t fl::Pixel::green

Definition at line 82 of file ___pixeltypes.h.

◆ raw

uint8_t fl::Pixel::raw[3]

Definition at line 79 of file ___pixeltypes.h.

◆ red

uint8_t fl::Pixel::red

Definition at line 81 of file ___pixeltypes.h.


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