Enhancement in effect functions.

- added color_add()
- fixed AA setPixelColor()
- added fadeToBlackBy() (FastLED)
- added hiding of * palettes if not all color selectors shown
This commit is contained in:
Blaz Kristan
2022-06-17 18:57:32 +02:00
parent 0df5221784
commit b00e038b33
7 changed files with 1889 additions and 1809 deletions

View File

@@ -3976,7 +3976,7 @@ uint16_t WS2812FX::mode_chunchun(void)
{
counter -= span;
uint16_t megumin = sin16(counter) + 0x8000;
uint32_t bird = (megumin * SEGLEN) >> 16;
uint16_t bird = uint32_t(megumin * SEGLEN) >> 16;
uint32_t c = color_from_palette((i * 255)/ numBirds, false, false, 0); // no palette wrapping
setPixelColor(bird, c);
}