X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=GranimPattern.pde;h=425b97cdb04ac6b236636da04fd8440850662e03;hb=ab77005fb7f2d1c6b56e603ddf230f68a13582e8;hp=606c9e2e3ca17219f203eb11cabda5b06b8ce2b3;hpb=cd059b79f8f95ea86cb865375a7a468980a0cd81;p=SugarCubes.git diff --git a/GranimPattern.pde b/GranimPattern.pde old mode 100644 new mode 100755 index 606c9e2..425b97c --- a/GranimPattern.pde +++ b/GranimPattern.pde @@ -110,7 +110,7 @@ class GranimPattern extends SCPattern ((Granim) g).update(); } List drawList = model.points.subList(Math.min(g.position,colors.length-1), Math.min(g.position + g.width(),colors.length-1)); - println("drawlistsize "+drawList.size()); + //println("drawlistsize "+drawList.size()); gbuffer = g.graphicBuffer.toArray(new Integer[0]); @@ -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