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

◆ Interpolate()

void Color3i::Interpolate ( const Color3i & other_color,
float t )

Definition at line 67 of file color.cpp.

67 {
68 if (0.0f >= t) {
69 Set(other_color);
70 } else if (1.0f <= t) {
71 return;
72 }
73
74 Color3i new_color = other_color;
75 new_color.Mul(1.0f - t);
76 this->Mul(t);
77 this->Add(new_color);
78}
void Add(const Color3i &color)
Definition color.cpp:43
Color3i(uint8_t r, uint8_t g, uint8_t b)
Definition color.h:17
void Mul(const Color3i &other_color)
Definition color.cpp:10
void Set(uint8_t r, uint8_t g, uint8_t b)
Definition color.h:21

References Color3i(), Add(), Mul(), and Set().

+ Here is the call graph for this function: