X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=MarkSlee.pde;h=3d6cda6b47293b392a1a329d9177b5958d4cd031;hb=1d414e45cd68ba08ce2a79c706759d26bbe1d046;hp=4a87665c8df95f6b735b5eb23ed34ad0d5ddde4f;hpb=581d7d58054e5d6d8e539824f4af6b60d294555f;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; } }