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

◆ Add()

void Color3i::Add ( const Color3i & color)

Definition at line 44 of file color.cpp.

44 {
45 if ((255 - r_) < color.r_) r_ = 255;
46 else r_ += color.r_;
47 if ((255 - g_) < color.g_) g_ = 255;
48 else g_ += color.g_;
49 if ((255 - b_) < color.b_) b_ = 255;
50 else b_ += color.b_;
51}
uint8_t b_
Definition color.h:56
uint8_t g_
Definition color.h:56
uint8_t r_
Definition color.h:56

References Color3i(), b_, g_, and r_.

Referenced by Interpolate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: