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

◆ Add()

void Color3i::Add ( const Color3i & color)

Definition at line 43 of file color.cpp.

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

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: