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

◆ Mulf()

void Color3i::Mulf ( float scale)

Definition at line 22 of file color.cpp.

22 {
23 const int s = static_cast<int>(scale * 255.0f);
24
25 int r = static_cast<int>(r_) * s / 255;
26 int g = static_cast<int>(g_) * s / 255;
27 int b = static_cast<int>(b_) * s / 255;
28
29 Set(r, g, b);
30}
UISlider scale("Scale", 4,.1, 4,.1)
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 b_, g_, r_, scale, and Set().

+ Here is the call graph for this function: