//Use loop() and two variables //to animate an ellipse and three lines. int x=0; int y=100; float a = 150; void setup() { size(300, 300); stroke(255); framerate(30); } void loop() { background(0); a = a - 1; if (a < 0) { a = height; } line(a*1.7, 250, width, 250); //verfogt ellipse line(a/5, 150, width, 150); line(a,50, width, 50); ellipseMode(CENTER_DIAMETER); fill(0); ellipse(a,150, a/1.2+15,30); }