From 3ebf7bf483c6066faec907855ab1f5882dc58d9a Mon Sep 17 00:00:00 2001 From: David Madison Date: Sun, 2 Jan 2022 15:56:53 -0500 Subject: Add brightness and blend defaults to fill_palette --- src/colorutils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/colorutils.h b/src/colorutils.h index 16534ef6..4ea7962d 100644 --- a/src/colorutils.h +++ b/src/colorutils.h @@ -1569,7 +1569,7 @@ CHSV ColorFromPalette( const CHSVPalette32& pal, // Fill a range of LEDs with a sequence of entries from a palette template void fill_palette(CRGB* L, uint16_t N, uint8_t startIndex, uint8_t incIndex, - const PALETTE& pal, uint8_t brightness, TBlendType blendType) + const PALETTE& pal, uint8_t brightness=255, TBlendType blendType=LINEARBLEND) { uint8_t colorIndex = startIndex; for( uint16_t i = 0; i < N; ++i) { @@ -1582,7 +1582,7 @@ void fill_palette(CRGB* L, uint16_t N, uint8_t startIndex, uint8_t incIndex, // the entire palette smoothly covers the range of LEDs template void fill_palette_circular(CRGB* L, uint16_t N, uint8_t startIndex, - const PALETTE& pal, uint8_t brightness, TBlendType blendType) + const PALETTE& pal, uint8_t brightness=255, TBlendType blendType=LINEARBLEND) { if (N == 0) return; // avoiding div/0 -- cgit v1.2.3