From: Mark Slee Date: Sun, 11 Aug 2013 06:56:45 +0000 (-0700) Subject: Tweak to wrapdistf X-Git-Url: https://git.piment-noir.org/?p=SugarCubes.git;a=commitdiff_plain;h=92341dd9a8e25ce6741d5f0764608376e63bf25b Tweak to wrapdistf --- diff --git a/TestPatterns.pde b/TestPatterns.pde index c247e2c..38ea229 100644 --- a/TestPatterns.pde +++ b/TestPatterns.pde @@ -83,18 +83,16 @@ class TestTowerPattern extends SCPattern { public TestTowerPattern(GLucose glucose) { super(glucose); addModulator(towerIndex).trigger(); - towerIndex.setValue(9); } public void run(int deltaMs) { - println((int)towerIndex.getValuef()); int ti = 0; for (Tower t : model.towers) { for (Point p : t.points) { colors[p.index] = color( lx.getBaseHuef(), 100, - max(0, 100 - 80*abs(ti - towerIndex.getValuef())) + max(0, 100 - 80*LXUtils.wrapdistf(ti, towerIndex.getValuef(), model.towers.size())) ); } ++ti;