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

◆ Mul() [1/2]

void Color3i::Mul ( const Color3i & other_color)

Definition at line 10 of file color.cpp.

10 {
11 int r = r_;
12 int g = g_;
13 int b = b_;
14
15 r = r * int(other_color.r_) / 255;
16 g = g * int(other_color.g_) / 255;
17 b = b * int(other_color.b_) / 255;
18 Set(r, g, b);
19}
uint8_t b_
Definition color.h:52
void Set(uint8_t r, uint8_t g, uint8_t b)
Definition color.h:21
uint8_t g_
Definition color.h:52
uint8_t r_
Definition color.h:52

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

Referenced by Interpolate(), and Mul().

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