Skip to content

Commit 0dca0ab

Browse files
committed
add WLED Tetrix and PacMan effect
Back End ======== - Remove Node::~Node() - WLED effects: add Tetrix and PacMan
1 parent 0364c17 commit 0dca0ab

File tree

5 files changed

+409
-39
lines changed

5 files changed

+409
-39
lines changed

src/MoonBase/Nodes.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ void LiveScriptNode::onLayout() {
218218
LiveScriptNode::~LiveScriptNode() {
219219
EXT_LOGV(ML_TAG, "%s", animation);
220220
scriptRuntime.kill(animation);
221-
Node::~Node();
222221
}
223222

224223
// LiveScriptNode functions

src/MoonLight/Layers/VirtualLayer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class VirtualLayer {
176176
void addRGB(const Coord3D& position, const CRGB& color) { setRGB(position, getRGB(position) + color); }
177177

178178
void blendColor(const uint16_t indexV, const CRGB& color, uint8_t blendAmount) { setRGB(indexV, blend(color, getRGB(indexV), blendAmount)); }
179-
void blendColor(Coord3D& position, const CRGB& color, const uint8_t blendAmount) { blendColor(XYZ(position), color, blendAmount); }
179+
void blendColor(Coord3D position, const CRGB& color, const uint8_t blendAmount) { blendColor(XYZ(position), color, blendAmount); }
180180

181181
uint8_t getWhite(const uint16_t indexV) { return getLight<uint8_t>(indexV, layerP->lights.header.offsetWhite); }
182182
uint8_t getWhite(Coord3D pos) { return getWhite(XYZ(pos)); }

src/MoonLight/Modules/ModuleEffects.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,10 @@ class ModuleEffects : public NodeManager {
126126
addControlValue(control, getNameAndTags<Noise2DEffect>());
127127
addControlValue(control, getNameAndTags<NoiseMeterEffect>());
128128
addControlValue(control, getNameAndTags<OctopusEffect>());
129+
addControlValue(control, getNameAndTags<PacManEffect>());
129130
addControlValue(control, getNameAndTags<PopCornEffect>());
130131
addControlValue(control, getNameAndTags<RainEffect>());
132+
addControlValue(control, getNameAndTags<TetrixEffect>());
131133
addControlValue(control, getNameAndTags<WaverlyEffect>());
132134

133135
// FastLED effects
@@ -259,10 +261,14 @@ class ModuleEffects : public NodeManager {
259261
node = allocMBObject<NoiseMeterEffect>();
260262
else if (equalAZaz09(name, OctopusEffect::name()))
261263
node = allocMBObject<OctopusEffect>();
264+
else if (equalAZaz09(name, PacManEffect::name()))
265+
node = allocMBObject<PacManEffect>();
262266
else if (equalAZaz09(name, PopCornEffect::name()))
263267
node = allocMBObject<PopCornEffect>();
264268
else if (equalAZaz09(name, RainEffect::name()))
265269
node = allocMBObject<RainEffect>();
270+
else if (equalAZaz09(name, TetrixEffect::name()))
271+
node = allocMBObject<TetrixEffect>();
266272
else if (equalAZaz09(name, WaverlyEffect::name()))
267273
node = allocMBObject<WaverlyEffect>();
268274

0 commit comments

Comments
 (0)