X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=MarkSlee.pde;h=3d6cda6b47293b392a1a329d9177b5958d4cd031;hb=e0cfbe20b2d0211c67ce6b44d9cb0931dd7af83e;hp=4a87665c8df95f6b735b5eb23ed34ad0d5ddde4f;hpb=207911097b63d6a40af8f006973e74bf4d052c31;p=SugarCubes.git diff --git a/MarkSlee.pde b/MarkSlee.pde index 4a87665..3d6cda6 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; } }