X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=GranimPattern.pde;h=abe2237d3b295bf7b7e881dc44756e20237f84d6;hb=7c7625ec088b93148f46adc19ba8f1cb4baa8321;hp=0a34bafe986d1d4baac8eda506158b9cc3a1ef40;hpb=b0064ed7eb5d5d886cec459c7839221c3b125f58;p=SugarCubes.git diff --git a/GranimPattern.pde b/GranimPattern.pde index 0a34baf..abe2237 100644 --- a/GranimPattern.pde +++ b/GranimPattern.pde @@ -96,7 +96,7 @@ class GranimPattern extends SCPattern return displayList.get(name); } - public void run(int deltaMs) + public void run(double deltaMs) { drawToPointList(); } @@ -118,7 +118,7 @@ class GranimPattern extends SCPattern { colors[drawList.get(i).index] = gbuffer[i]; } - g.changed =false; + g.changed = false; } } @@ -188,31 +188,35 @@ class RandomsGranim extends Granim _len=len; addGraphic("myrandoms", makeGraphic(len)); } + int colorLid=0; public Graphic makeGraphic(int len) { + int[] colors= new int[len]; for(int i =0;i