X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=MarkSlee.pde;h=7ccf8aaea9ae8b358a02d8f6c304548cc2f008a7;hb=e037f60f518373c3bb952f79a2ae66950e55a52f;hp=dcf35a551e3c9fe8066066897cce8eccacefdf19;hpb=2bb5682284f70c5788cbfcb9cba3c7bf66a104b6;p=SugarCubes.git diff --git a/MarkSlee.pde b/MarkSlee.pde index dcf35a5..7ccf8aa 100644 --- a/MarkSlee.pde +++ b/MarkSlee.pde @@ -14,7 +14,7 @@ class Cathedrals extends SCPattern { addParameter(sat); } - protected void onActive() { + void onActive() { if (eq == null) { eq = new GraphicEQ(lx, 16); eq.slope.setValue(0.7); @@ -684,10 +684,11 @@ class Swarm extends SCPattern { colors[p.index] = lx.hsb( (lx.getBaseHuef() + 0.3 * abs(p.x - hOffX.getValuef())) % 360, constrain(80 + 40 * fV, 0, 100), - constrain(100 - (30 - fV * falloff.getValuef()) * modDist(i + (s*63)%61, offset.getValuef() * strip.metrics.numPoints, strip.metrics.numPoints), 0, 100) + constrain(100 - + (30 - fV * falloff.getValuef()) * modDist(i + (s*63)%61, offset.getValuef() * strip.metrics.numPoints, strip.metrics.numPoints), 0, 100) ); ++i; - } + } ++s; } } @@ -808,7 +809,7 @@ class BassPod extends SCPattern { addParameter(clr); } - protected void onActive() { + void onActive() { if (eq == null) { eq = new GraphicEQ(lx, 16); eq.range.setValue(0.4); @@ -860,7 +861,7 @@ class CubeEQ extends SCPattern { super(glucose); } - protected void onActive() { + void onActive() { if (eq == null) { eq = new GraphicEQ(lx, 16); addParameter(eq.level);