MCPcopy Create free account
hub / github.com/FastLED/FastLED / scale_rgb_hd

Function scale_rgb_hd

src/fl/gfx/colorutils.cpp.hpp:295–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295inline void scale_rgb_hd(CRGB16 &rgb, fl::u8x8 brightness) {
296 if (brightness.raw() == 256) {
297 return;
298 }
299 rgb.r = u8x8::from_raw(scale_hd_channel(rgb.r.raw(), brightness));
300 rgb.g = u8x8::from_raw(scale_hd_channel(rgb.g.raw(), brightness));
301 rgb.b = u8x8::from_raw(scale_hd_channel(rgb.b.raw(), brightness));
302}
303
304template <fl::u8 PaletteBits, typename Reader>
305CRGB16 ColorFromPaletteHDImpl(const Reader &reader, fl::u16 index,

Callers 1

ColorFromPaletteHDImplFunction · 0.85

Calls 2

scale_hd_channelFunction · 0.85
rawMethod · 0.45

Tested by

no test coverage detected