float rot1 = 0; int xpos = 50; int ypos = 50; void setup(){ smooth(); //rectMode(CENTER); noFill(); colorMode(RGB,100); } void draw(){ background(255,255,255); rot1 += 0.003; pushMatrix(); translate(50,50); rotate(rot1); color c3 = color(0,0,0,100); stroke(c3); rect(0,0,30,30); popMatrix(); color c1 = color(255,0,0,50); stroke(c1); rect(xpos,ypos,30,30); color c2 = color(0,0,255,50); stroke(c2); line(0,height/2,width,height/2); line(width/2,0,width/2,height); }