X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ShaheenGandhi.pde;h=a9428aa2fa793e647850e91c9ee359bce02be230;hb=34327c962351112e07c3d93f56ffc543fac45b58;hp=a6fbf555ea11ecae8a81b4a51ea9b64e967658f2;hpb=6dfcb1d090e5f4660069af5de441ed4c46f7cf31;p=SugarCubes.git diff --git a/ShaheenGandhi.pde b/ShaheenGandhi.pde index a6fbf55..a9428aa 100644 --- a/ShaheenGandhi.pde +++ b/ShaheenGandhi.pde @@ -103,7 +103,7 @@ class HelixPattern extends SCPattern { return phase; } - void step(int deltaMs) { + void step(double deltaMs) { // Rotate if (rotationPeriod != 0) { this.phase = (phase + ((float)deltaMs / (float)rotationPeriod) * TWO_PI); @@ -190,7 +190,7 @@ class HelixPattern extends SCPattern { addParameter(helix2On); addParameter(basePairsOn); - PVector origin = new PVector(100, 50, 45); + PVector origin = new PVector(100, 50, 55); PVector axis = new PVector(1,0,0); h1 = new Helix( @@ -243,7 +243,7 @@ class HelixPattern extends SCPattern { return color((lx.getBaseHuef() + (360*(phase / TWO_PI)))%360, 80.f, b); } - void run(int deltaMs) { + void run(double deltaMs) { boolean h1on = helix1On.getValue() > 0.5; boolean h2on = helix2On.getValue() > 0.5; boolean spokesOn = (float)basePairsOn.getValue() > 0.5;