FastLED 3.9.15
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 425 of file crgb.h.

426 {
427 u8 sum = r + g + b;
428 return (sum & 0x01);
429 }
unsigned char u8
Definition stdint.h:131

References FASTLED_FORCE_INLINE, and FL_NOEXCEPT.

Referenced by setParity().

+ Here is the caller graph for this function: