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

◆ operator|()

FASTLED_FORCE_INLINE CRGB operator| ( const CRGB & p1,
const CRGB & p2 )

Combine two CRGB objects, taking the largest value of each channel.

Definition at line 731 of file crgb.h.

732{
733 return CRGB( p1.r > p2.r ? p1.r : p2.r,
734 p1.g > p2.g ? p1.g : p2.g,
735 p1.b > p2.b ? p1.b : p2.b);
736}
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:54

References FASTLED_FORCE_INLINE.