FastLED 3.10.8
Loading...
Searching...
No Matches

◆ getParity()

FASTLED_FORCE_INLINE u8 fl::CRGB::getParity ( )
inline

Returns 0 or 1, depending on the lowest bit of the sum of the color components.

Definition at line 432 of file crgb.h.

433 {
434 u8 sum = r + g + b;
435 return (sum & 0x01);
436 }
unsigned char u8
Definition stdint.h:131
InputGamut g
Definition rgbw.h:125

References FASTLED_FORCE_INLINE, fl::FL_NO_EXCEPT, and fl::g.

Referenced by setParity().

+ Here is the caller graph for this function: