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

Function ColorFromPaletteHD

src/fl/gfx/colorutils.h:1392–1397  ·  view source on GitHub ↗

@copydoc ColorFromPaletteHD(const CRGBPalette16&, fl::u16, fl::u8x8, TBlendType)

Source from the content-addressed store, hash-verified

1390
1391/// @copydoc ColorFromPaletteHD(const CRGBPalette16&, fl::u16, fl::u8x8, TBlendType)
1392inline CRGB16 ColorFromPaletteHD(const CRGBPalette16 &pal, fl::u16 index,
1393 fl::u8 brightness,
1394 TBlendType blendType = LINEARBLEND) FL_NOEXCEPT {
1395 const fl::u16 raw = brightness == 255 ? fl::u16(256) : brightness;
1396 return ColorFromPaletteHD(pal, index, fl::u8x8::from_raw(raw), blendType);
1397}
1398
1399/// @brief Same as ColorFromPalette, but higher precision. Will eventually
1400/// become the default.

Callers 1

FL_TEST_FILEFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected