X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=MarkSlee.pde;h=d3237e1e64fb2204e0ee6a41950ad80855e3d9cd;hb=bdef287d097659a12c9573879d0e8a7e34cbdef6;hp=4a3720640f88985bb871d76cdede3329204d7e71;hpb=bae2197a9a134bd45f983cd81ceb635d646620e3;p=SugarCubes.git diff --git a/MarkSlee.pde b/MarkSlee.pde index 4a37206..d3237e1 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; } }