@copydoc ColorFromPaletteHD(const CRGBPalette16&, fl::u16, fl::u8x8, TBlendType)
| 1390 | |
| 1391 | /// @copydoc ColorFromPaletteHD(const CRGBPalette16&, fl::u16, fl::u8x8, TBlendType) |
| 1392 | inline 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. |