X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TestPatterns.pde;h=6a662f248fb5dfe4f1152eff98f0f35e9a6a6ee0;hb=8f4e6c99775f2724edf3cec488860eb68b06491c;hp=62a1956ba9bad5c6ff6c50ba56a6af6f08efeb21;hpb=2bb5682284f70c5788cbfcb9cba3c7bf66a104b6;p=SugarCubes.git diff --git a/TestPatterns.pde b/TestPatterns.pde index 62a1956..6a662f2 100644 --- a/TestPatterns.pde +++ b/TestPatterns.pde @@ -229,13 +229,13 @@ class TestTowerPattern extends TestPattern { */ class TestProjectionPattern extends TestPattern { - private final Projection projection; + private final LXProjection projection; private final SawLFO angle = new SawLFO(0, TWO_PI, 9000); private final SinLFO yPos = new SinLFO(-20, 40, 5000); public TestProjectionPattern(GLucose glucose) { super(glucose); - projection = new Projection(model); + projection = new LXProjection(model); addModulator(angle).trigger(); addModulator(yPos).trigger(); } @@ -256,7 +256,7 @@ class TestProjectionPattern extends TestPattern { .scale(1, 1.5, 1); float hv = lx.getBaseHuef(); - for (Coord c : projection) { + for (LXVector c : projection) { float d = sqrt(c.x*c.x + c.y*c.y + c.z*c.z); // distance from origin // d = abs(d-60) + max(0, abs(c.z) - 20); // life saver / ring thing d = max(0, abs(c.y) - 10 + .1*abs(c.z) + .02*abs(c.x)); // plane / spear thing