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

◆ scale_hd_channel()

fl::u16 fl::anonymous_namespace{colorutils.cpp.hpp}::scale_hd_channel ( fl::u16 channel,
fl::u8x8 scale )
inline

Definition at line 289 of file colorutils.cpp.hpp.

289 {
290 const fl::u32 scaled =
291 (static_cast<fl::u32>(channel) * scale.raw()) >> 8;
292 return scaled > 0xFFFFu ? fl::u16(0xFFFF) : static_cast<fl::u16>(scaled);
293}
fl::UISlider scale("Scale", 4,.1, 4,.1)
Base definition for an LED controller.
Definition crgb.hpp:179

References scale, and scale_hd_channel().

Referenced by scale_hd_channel(), and scale_rgb_hd().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: