X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ShaheenGandhi.pde;h=a9428aa2fa793e647850e91c9ee359bce02be230;hb=34327c962351112e07c3d93f56ffc543fac45b58;hp=2e9ead0005c425eaa0ff11b62b98b0028cd9554a;hpb=a898d79bac007404bed34365f31ffbc6480c901c;p=SugarCubes.git diff --git a/ShaheenGandhi.pde b/ShaheenGandhi.pde old mode 100755 new mode 100644 index 2e9ead0..a9428aa --- 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); @@ -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;