X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TestPatterns.pde;h=82aeea4e160daea4938dc249e307935a2120337a;hb=c39f7a0462dfcf7f5ba9b1f6e181e990e4490969;hp=04c2c73d9e34916662b2e6267c3eae360906a042;hpb=2b6688e8e11d5421ec83f1c03efb6eb05508cc7b;p=SugarCubes.git diff --git a/TestPatterns.pde b/TestPatterns.pde index 04c2c73..82aeea4 100644 --- a/TestPatterns.pde +++ b/TestPatterns.pde @@ -10,13 +10,13 @@ class TestHuePattern extends SCPattern { } class TestXPattern extends SCPattern { - private SinLFO xPos = new SinLFO(0, 255, 4000); + private SinLFO xPos = new SinLFO(0, model.xMax, 4000); public TestXPattern(GLucose glucose) { super(glucose); addModulator(xPos).trigger(); } public void run(int deltaMs) { - for (Point p : Point.list) { + for (Point p : model.points) { colors[p.index] = color( lx.getBaseHuef(), 100, @@ -27,13 +27,13 @@ class TestXPattern extends SCPattern { } class TestYPattern extends SCPattern { - private SinLFO yPos = new SinLFO(0, 127, 4000); + private SinLFO yPos = new SinLFO(0, model.yMax, 4000); public TestYPattern(GLucose glucose) { super(glucose); addModulator(yPos).trigger(); } public void run(int deltaMs) { - for (Point p : Point.list) { + for (Point p : model.points) { colors[p.index] = color( lx.getBaseHuef(), 100, @@ -44,13 +44,13 @@ class TestYPattern extends SCPattern { } class TestZPattern extends SCPattern { - private SinLFO zPos = new SinLFO(0, 127, 4000); + private SinLFO zPos = new SinLFO(0, model.zMax, 4000); public TestZPattern(GLucose glucose) { super(glucose); addModulator(zPos).trigger(); } public void run(int deltaMs) { - for (Point p : Point.list) { + for (Point p : model.points) { colors[p.index] = color( lx.getBaseHuef(), 100,