code
//ellipse = circle
size(400,400);
background(0,0,0);
//rectMode(CENTER);
stroke(255,0,0);
strokeWeight(50);
//fill rules(green,red,blue,transparency)
fill(0,0,155);
ellipse(100,100,50,50);
ellipse(200,100,50,50);
ellipse(300,100,60,60);
ellipse(250,200,30,60);
ellipse(250,200,90,30);
//**comment from here to see the rest of the shapes hidden**
ellipse(200,200,400,400);
ellipse(200,200,200,200);
stroke(0,0,255);
rect(width/2 ,height/2,width/2,height/2);
fill(0,255,0,128);
ellipse(0,height,400,400);
ellipse(width,height,400,400);
ellipse(width,0,400,400);
stroke(0,0,155);
line(0,0,width,height);
fill(0);
textAlign(CENTER);
textSize(12);
//text rulez ("text", width, height)
text("Hello professor!!",width/2 - 24,height/2);
fill(255);
text("This is a mess of shapes",width/2, height - 20);

No comments:
Post a Comment