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

Function promote_rgb_to_hd

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

Source from the content-addressed store, hash-verified

281}
282
283inline CRGB16 promote_rgb_to_hd(const CRGB &rgb) {
284 return CRGB16(u8x8::from_raw(promote_channel_to_hd(rgb.red)),
285 u8x8::from_raw(promote_channel_to_hd(rgb.green)),
286 u8x8::from_raw(promote_channel_to_hd(rgb.blue)));
287}
288
289inline fl::u16 scale_hd_channel(fl::u16 channel, fl::u8x8 scale) {
290 const fl::u32 scaled =

Callers 1

ColorFromPaletteHDImplFunction · 0.85

Calls 2

CRGB16Class · 0.85
promote_channel_to_hdFunction · 0.85

Tested by

no test coverage detected