Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Madison <dmadison@users.noreply.github.com>2022-01-02 23:56:53 +0300
committerDavid Madison <dmadison@users.noreply.github.com>2022-01-02 23:56:53 +0300
commit3ebf7bf483c6066faec907855ab1f5882dc58d9a (patch)
treea0054df43b724f005d22f953e585ab3fef383b5a
parent5cc52a289a405fcc580aac6621cc240a1ca8fce6 (diff)
Add brightness and blend defaults to fill_palette
-rw-r--r--src/colorutils.h4
1 files 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 <typename PALETTE>
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 <typename PALETTE>
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