New 2D Drift Rose effect.

Fix for segment name.
Updated blurRow & blurCol to work on non-leds[].
Updated several legacy effects to be 2D aware.
Code cleanup.
This commit is contained in:
Blaz Kristan
2022-05-26 21:36:48 +02:00
parent e248b989e1
commit 7689587879
6 changed files with 1611 additions and 1501 deletions

View File

@@ -266,8 +266,9 @@
#define FX_MODE_GHOST_RIDER 143
#define FX_MODE_BLOBS 144
#define FX_MODE_SCROLL_TEXT 145
#define FX_MODE_DRFIT_ROSE 146
#define MODE_COUNT 146
#define MODE_COUNT 147
class WS2812FX {
@@ -665,6 +666,7 @@ class WS2812FX {
_mode[FX_MODE_GHOST_RIDER] = &WS2812FX::mode_2Dghostrider;
_mode[FX_MODE_BLOBS] = &WS2812FX::mode_2Dfloatingblobs;
_mode[FX_MODE_SCROLL_TEXT] = &WS2812FX::mode_2Dscrollingtext;
_mode[FX_MODE_DRFIT_ROSE] = &WS2812FX::mode_2Ddriftrose;
_brightness = DEFAULT_BRIGHTNESS;
currentPalette = CRGBPalette16(CRGB::Black);
@@ -977,7 +979,8 @@ class WS2812FX {
mode_2Dcrazybees(void),
mode_2Dghostrider(void),
mode_2Dfloatingblobs(void),
mode_2Dscrollingtext(void);
mode_2Dscrollingtext(void),
mode_2Ddriftrose(void);
// end 2D support