float x; // global void setup() { float goat; size(800, 800); background(255, 0, 0); x = 0; frameRate(30); } void draw() { x = x+5; fill(0, 0, 255); // fill color is set to BLUE stroke(255); strokeWeight(2); ellipseMode(CORNER); ellipse(0, 0, 100, 200); rectMode(CORNER); rect(width-400, height-400, 400, 400); fill(0, 255, 0); // fill color is set to GREEN rect(width/2+x, height/2+x, 50, 50); }