From: Mark Slee Date: Sun, 11 Aug 2013 00:39:32 +0000 (-0700) Subject: Use helpers from new GLucose for points per cube X-Git-Url: https://git.piment-noir.org/?p=SugarCubes.git;a=commitdiff_plain;h=cdb88d5d665ad144719ed382d345be43750af88e Use helpers from new GLucose for points per cube --- diff --git a/TestPatterns.pde b/TestPatterns.pde index c4432ab..acc50c7 100644 --- a/TestPatterns.pde +++ b/TestPatterns.pde @@ -136,8 +136,7 @@ class TestProjectionPattern extends SCPattern { class TestCubePattern extends SCPattern { - private int POINTS_PER_CUBE = Cube.FACES_PER_CUBE * Face.STRIPS_PER_FACE * Strip.POINTS_PER_STRIP; - private SawLFO index = new SawLFO(0, POINTS_PER_CUBE, POINTS_PER_CUBE*60); + private SawLFO index = new SawLFO(0, Cube.POINTS_PER_CUBE, Cube.POINTS_PER_CUBE*60); TestCubePattern(GLucose glucose) { super(glucose); diff --git a/_PandaDriver.pde b/_PandaDriver.pde index 5e37ccb..2350928 100644 --- a/_PandaDriver.pde +++ b/_PandaDriver.pde @@ -52,7 +52,7 @@ public class PandaDriver { for (int ci = 0; ci < CUBES_PER_CHANNEL; ++ci) { int cubeNumber = (ci < channel.length) ? channel[ci] : 0; if (cubeNumber == 0) { - for (int i = 0; i < (Cube.FACES_PER_CUBE*Face.STRIPS_PER_FACE*Strip.POINTS_PER_STRIP); ++i) { + for (int i = 0; i < Cube.POINTS_PER_CUBE; ++i) { points.add(0); } } else { diff --git a/code/GLucose.jar b/code/GLucose.jar index 171f7ea..346b56f 100644 Binary files a/code/GLucose.jar and b/code/GLucose.jar differ