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

◆ Mul() [1/2]

void Color3i::Mul ( const Color3i & other_color)

Definition at line 11 of file color.cpp.

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

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: