X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=BenMorrow.pde;fp=BenMorrow.pde;h=67a1b79c317f7c21d21d0fd84c9b246da00b5426;hb=27e9754c8f288b83c4c100e6030fb30190a2e0a2;hp=a86189b60e6c47882bb09dc46360441312e2283a;hpb=2ca063885e4bcf5c22f48c396959b37417694a6a;p=SugarCubes.git diff --git a/BenMorrow.pde b/BenMorrow.pde index a86189b..67a1b79 100644 --- a/BenMorrow.pde +++ b/BenMorrow.pde @@ -49,7 +49,16 @@ class GranimTestPattern extends GranimPattern { super(glucose); RedThreeGraphic myReds = new RedThreeGraphic(); - addGraphic("string_name",myReds); + addGraphic("myThreeReds",myReds); + } + int counter=0; + public void run(int deltaMs) + { + super.run(deltaMs); + if(counter % 3 ==0) + { + getGraphicByName("myThreeReds").position++; + } }