//Michael schmitz 2003 int x = 0; int y = 100; int arraycounter = 0; float [] posx; float [] posy; float linex1 = 0; float liney1; float linex2 = 400; float liney2; float speed = 1.0f; float vibration = 0f; float move = 0f; int horizont = 200; void setup() { size(400,400); background(55,55,55); ellipseMode(CENTER_DIAMETER); rectMode(CENTER_DIAMETER); } void loop() { //reset background background(55,555,55); //linie move = move+1; if (move>width) { move = 0; horizont = int(random(400)/10)*10; } if (move>100) cross(100,horizont); if (move>200) cross(200,horizont); if (move>300) cross(300,horizont); cross(move,horizont); } //crate a function named "cross" void cross(float x, float y){ fill(255,255,255); noStroke(); rect(x,y,50,10); rect(x,y,10,50); }