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

◆ getParity()

FASTLED_FORCE_INLINE uint8_t CRGB::getParity ( )
inline

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

Definition at line 414 of file crgb.h.

415 {
416 uint8_t sum = r + g + b;
417 return (sum & 0x01);
418 }

References FASTLED_FORCE_INLINE.

Referenced by setParity().

+ Here is the caller graph for this function: