Task 1
size(100,100);
rect(0,0,50,50);
fill(40);
rect(0,0,25,25);
fill(162);
rect(25,25,25,25);
size(100,100);
rect(0,0,50,50);
fill(40);
rect(0,0,25,25);
fill(162);
rect(25,25,25,25);
Task 2
size(200,200);
background(100,4,255);
stroke (255);
fill (150) ;
rectMode (CENTER);
rect (100,100,50,50);
background(100,4,255);
stroke (255);
fill (150) ;
rectMode (CENTER);
rect (100,100,50,50);
Task 3
background(255);
noStroke();
fill(150,50,150);//purple
ellipse(20,20,16,16);
fill(255,100,0);//orange
ellipse(40,20,16,16);
fill(50,250,50);//Lime green
ellipse(60,20,16,16);
noStroke();
fill(150,50,150);//purple
ellipse(20,20,16,16);
fill(255,100,0);//orange
ellipse(40,20,16,16);
fill(50,250,50);//Lime green
ellipse(60,20,16,16);
Task 4
size(700, 500);
background(100,0,100);
stroke(255,0,255);
strokeWeight(5);
fill(0);
rect(100,100,100,50);
stroke(0);
strokeWeight(0);
fill(100,50,65);
rect(300,100,100,50);
stroke(100,0,255);
strokeWeight(10);
fill(1,1,255);
rect(500,100,100,50);
fill(0);
textAlign(CENTER);
text( " Black rectangle with pink stroke " ,width/4,200);
textAlign (LEFT) ;
text( " Brown rectangle with no stroke " ,width/2.5,200);
textAlign(RIGHT);
text( " Blue rectangle with large purple stroke " ,width/1,200);
fill(255);
stroke(0);
strokeWeight(2);
ellipse(350,350,200,200);
stroke(200,30,30);
fill(255,255,10);
ellipse(300,300,30,50);
ellipse(400,300,30,50);
fill(0);
stroke(0);
arc(350,375,150,100,0,3.14159);
background(100,0,100);
stroke(255,0,255);
strokeWeight(5);
fill(0);
rect(100,100,100,50);
stroke(0);
strokeWeight(0);
fill(100,50,65);
rect(300,100,100,50);
stroke(100,0,255);
strokeWeight(10);
fill(1,1,255);
rect(500,100,100,50);
fill(0);
textAlign(CENTER);
text( " Black rectangle with pink stroke " ,width/4,200);
textAlign (LEFT) ;
text( " Brown rectangle with no stroke " ,width/2.5,200);
textAlign(RIGHT);
text( " Blue rectangle with large purple stroke " ,width/1,200);
fill(255);
stroke(0);
strokeWeight(2);
ellipse(350,350,200,200);
stroke(200,30,30);
fill(255,255,10);
ellipse(300,300,30,50);
ellipse(400,300,30,50);
fill(0);
stroke(0);
arc(350,375,150,100,0,3.14159);