X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=MarkSlee.pde;h=56c06536e5aa8d33bb787fa76af6331ac3934c5a;hb=ceb90bf70c1e315c679ea1a5df9c06305f625d7d;hp=efcf7d7f6832d36a22ca90e0c4fcf014197a7a1b;hpb=9bdc3e7323c2d8d106a60a8d53c966f7d2d75063;p=SugarCubes.git diff --git a/MarkSlee.pde b/MarkSlee.pde index efcf7d7..56c0653 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; } }