From: Ben Morrow Date: Sun, 25 Aug 2013 05:56:15 +0000 (-0700) Subject: Divide colors up X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=c6ba29cff1094cb6104ff0d650b0d9075732f118;p=SugarCubes.git Divide colors up --- diff --git a/BenMorrow.pde b/BenMorrow.pde index 31c156b..67fbbeb 100644 --- a/BenMorrow.pde +++ b/BenMorrow.pde @@ -19,6 +19,7 @@ class TowerParams extends SCPattern ArrayList towerParams; int towerSize; + int colorSpan; TowerParams(GLucose glucose) { super(glucose); @@ -44,6 +45,7 @@ class TowerParams extends SCPattern addParameter(p); } towerSize = model.towers.size(); + colorSpan = 255 / towerSize; println("towers "+towerSize); } @@ -58,7 +60,7 @@ class TowerParams extends SCPattern { if(p.y