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

◆ nscale8()

CRGB16 & fl::CRGB16::nscale8 ( u8 scale)
inline

Definition at line 14 of file crgb16.h.

14 {
15 r = u8x8::from_raw(static_cast<u16>((static_cast<u32>(r.raw()) * scale) >> 8));
16 g = u8x8::from_raw(static_cast<u16>((static_cast<u32>(g.raw()) * scale) >> 8));
17 b = u8x8::from_raw(static_cast<u16>((static_cast<u32>(b.raw()) * scale) >> 8));
18 return *this;
19 }
fl::UISlider scale("Scale", 4,.1, 4,.1)
static constexpr FASTLED_FORCE_INLINE u8x8 from_raw(u16 raw) FL_NOEXCEPT
Definition u8x8.h:53
u8x8 b
Definition crgb16.h:11
u8x8 g
Definition crgb16.h:11
u8x8 r
Definition crgb16.h:11

References CRGB16(), b, fl::u8x8::from_raw(), g, r, and scale.

+ Here is the call graph for this function: