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

◆ lerp_channel_to_hd()

fl::u16 fl::anonymous_namespace{colorutils.cpp.hpp}::lerp_channel_to_hd ( fl::u8 a,
fl::u8 b,
fl::u16 frac,
fl::u32 segment_size )
inline

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

276 {
277 const fl::u32 a_raw = static_cast<fl::u32>(a) << 8;
278 const fl::u32 b_raw = static_cast<fl::u32>(b) << 8;
279 return static_cast<fl::u16>(
280 (a_raw * (segment_size - frac) + b_raw * frac) / segment_size);
281}

References lerp_channel_to_hd().

Referenced by ColorFromPaletteHDImpl(), and lerp_channel_to_hd().

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