X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TestPatterns.pde;h=82aeea4e160daea4938dc249e307935a2120337a;hb=c39f7a0462dfcf7f5ba9b1f6e181e990e4490969;hp=f54e8886e38cdae9512c432d0064a9ef7f38e5f6;hpb=49815cc001318d4cd59874b41cc874a259900f14;p=SugarCubes.git diff --git a/TestPatterns.pde b/TestPatterns.pde index f54e888..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, 127, 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, 255, 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,