X-Git-Url: https://git.piment-noir.org/?p=SugarCubes.git;a=blobdiff_plain;f=MarkSlee.pde;h=62a474d84ec0d0ef261a43b9e5b8bfa203479eb6;hp=dcf35a551e3c9fe8066066897cce8eccacefdf19;hb=09f7f5dff86f1b54a789e39b4f6ab24ed072c17d;hpb=b8bb27489db7dc687bf150576e9d9439f1fa17a6 diff --git a/MarkSlee.pde b/MarkSlee.pde index dcf35a5..62a474d 100644 --- a/MarkSlee.pde +++ b/MarkSlee.pde @@ -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; } }