FastLED 3.9.15
Loading...
Searching...
No Matches

◆ getParity()

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

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

Definition at line 482 of file crgb.h.

483 {
484 fl::u8 sum = r + g + b;
485 return (sum & 0x01);
486 }
unsigned char u8
Definition int.h:17

References FASTLED_FORCE_INLINE.

Referenced by setParity().

+ Here is the caller graph for this function: