Much faster granims
[SugarCubes.git] / BenMorrow.pde
index 911f886fef8661075837c690aa78f4ef0320d9b9..8a1dd0270bcbbf28bbc8ff0bb13313e88f08f52f 100644 (file)
@@ -70,9 +70,9 @@ class GranimTestPattern extends GranimPattern
        }
        public void clearALL()
        {
-               for(Point p : model.points)
+               for(int i = 0; i < colors.length; i++)
                {
-                       colors[p.index] = 0;
+                       colors[i] = 0;
                }
        }
 
@@ -101,7 +101,7 @@ class GranimTestPattern2 extends GranimPattern
                super.run(deltaMs);
                Graphic randomsGraphic = getGraphicByName("myRandoms");
                randomsGraphic.position = Math.round(sin(count)*1000)+5000;
-               count+= 0.0005;
+               count+= 0.005;
        }
        public void clearALL()
        {