X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TobySegaran.pde;h=32b6d82aaa6a321a274e6196f167dc23d84d0f8b;hb=5bc92bc2ee6237b6bcb0ac6dc24208d97d0dbfc7;hp=c5e19d25efe1034450cad8a4a38d3fe93d8666d8;hpb=9b893d9614672cc7ec0e9ed8e9e67388737a3c17;p=SugarCubes.git diff --git a/TobySegaran.pde b/TobySegaran.pde index c5e19d2..32b6d82 100644 --- a/TobySegaran.pde +++ b/TobySegaran.pde @@ -23,7 +23,7 @@ class GlitchPlasma extends SCPattern { } } - public void run(int deltaMs) { + public void run(double deltaMs) { for (Point p : model.points) { float hv = sin(dist(p.fx + pos, p.fy, 128.0, 128.0) / 8.0) + sin(dist(p.fx, p.fy, 64.0, 64.0) / 8.0) @@ -67,7 +67,7 @@ class FireEffect extends SCPattern { float br=min(100,sqrt(level)*15); return color(level/1.7,100,br); } - public void run(int deltaMs) { + public void run(double deltaMs) { for (int x=10;x45 || x%50<5) { intensity[x][ym-1] = random(30,100); @@ -111,7 +111,7 @@ class StripBounce extends SCPattern { } } - public void run(int deltaMs) { + public void run(double deltaMs) { float[] bright = new float[model.points.size()]; for (Strip strip : model.strips) { for (int i=0;i