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

◆ nscale8x3_constexpr()

CRGB nscale8x3_constexpr ( uint8_t r,
uint8_t g,
uint8_t b,
fract8 scale )
constexpr

Definition at line 346 of file scale8.h.

346 {
347 return CRGB(((int)r * (int)(scale)) >> 8, ((int)g * (int)(scale)) >> 8,
348 ((int)b * (int)(scale)) >> 8);
349}
UISlider scale("Scale", 1.0f, 0.0f, 1.0f, 0.01f)
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:55

References scale.