From 8da613ee13049374e7e212692ad3b6d85d90fb41 Mon Sep 17 00:00:00 2001 From: Ewoud Date: Mon, 24 Jun 2024 12:12:15 +0200 Subject: [PATCH] Add Grouping and Spacing projections (WIP) --- src/App/LedLeds.h | 2 ++ src/App/LedModEffects.h | 2 ++ src/App/LedProjections.h | 18 ++++++++++++++++++ 3 files changed, 22 insertions(+) diff --git a/src/App/LedLeds.h b/src/App/LedLeds.h index 399d0211..a585b927 100644 --- a/src/App/LedLeds.h +++ b/src/App/LedLeds.h @@ -41,6 +41,8 @@ enum ProjectionsE p_Random, p_Reverse, p_Mirror, + p_Grouping, + p_Spacing, p_Kaleidoscope, p_Pinwheel, p_count // keep as last entry diff --git a/src/App/LedModEffects.h b/src/App/LedModEffects.h index 83c57d12..875a263d 100644 --- a/src/App/LedModEffects.h +++ b/src/App/LedModEffects.h @@ -108,6 +108,8 @@ class LedModEffects:public SysModule { fixture.projections.push_back(new RandomProjection); fixture.projections.push_back(new ReverseProjection); fixture.projections.push_back(new MirrorProjection); + fixture.projections.push_back(new GroupingProjection); + fixture.projections.push_back(new SpacingProjection); fixture.projections.push_back(new KaleidoscopeProjection); fixture.projections.push_back(new PinwheelProjection); }; diff --git a/src/App/LedProjections.h b/src/App/LedProjections.h index ca3b4725..8db2f597 100644 --- a/src/App/LedProjections.h +++ b/src/App/LedProjections.h @@ -226,6 +226,24 @@ class MirrorProjection: public Projection { } }; //MirrorProjection +class GroupingProjection: public Projection { + const char * name() {return "Grouping WIP";} + //uint8_t dim() {return _1D;} // every projection should work for all D + const char * tags() {return "💡";} + + void controls(Leds &leds, JsonObject parentVar) { + } +}; //GroupingProjection + +class SpacingProjection: public Projection { + const char * name() {return "Spacing WIP";} + //uint8_t dim() {return _1D;} // every projection should work for all D + const char * tags() {return "💡";} + + void controls(Leds &leds, JsonObject parentVar) { + } +}; //SpacingProjection + class KaleidoscopeProjection: public Projection { const char * name() {return "Kaleidoscope WIP";} //uint8_t dim() {return _1D;} // every projection should work for all D