X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=MarkSlee.pde;h=0adbe5589d680b8f9b5e4866067316587dd12f53;hb=254fbb6855f64f25317a5226aa1bc5f47274251d;hp=5a15993dfd2d6f187b0bf8c346ca21568183a290;hpb=3e8e60d84efa9e4c376574186635aa05f0f36f5f;p=SugarCubes.git diff --git a/MarkSlee.pde b/MarkSlee.pde index 5a15993..0adbe55 100644 --- a/MarkSlee.pde +++ b/MarkSlee.pde @@ -37,7 +37,7 @@ class SpaceTime extends SCPattern { float fVal = falloff.getValuef(); int s = 0; - for (Strip strip : model.allBoxStrips) { + for (Strip strip : model.strips) { int i = 0; for (Point p : strip.points) { colors[p.index] = color( @@ -86,7 +86,7 @@ class Swarm extends SCPattern { void run(int deltaMs) { float s = 0; - for (Strip strip : model.allBoxStrips) { + for (Strip strip : model.strips ) { int i = 0; for (Point p : strip.points) { float fV = max(-1, 1 - dist(p.fx/2., p.fy, fX.getValuef()/2., fY.getValuef()) / 64.); @@ -452,7 +452,7 @@ class Blinders extends SCPattern { colors[p.index] = color( (hv + p.fz + p.fy*hs.getValuef()) % 360, min(100, abs(p.fx - s.getValuef())/2.), - max(0, 100 - mv/2. - mv * abs(i - 7.5)) + max(0, 100 - mv/2. - mv * abs(i - (strip.metrics.length-1)/2.)) ); ++i; }