Week 2: Dra­w­i­n­g With Code

by Gawshika Aumkaran
  • Show Sketch
/** @peep sketchcode */
size(400, 400);
 
int r = random(60, 200);
int g = random(60, 200);
int b = random(60, 200);
 
//Set Background to random
background(r, g, b);
 
stroke(225);
strokeWeight(5.0);
line(60, 70, 290, 255);
 
fill (100, 100);
noStroke();
rect(5, 15, 50, 45);
 
fill (255);
noStroke();
rect(20, 30, 50, 50);
 
fill(200, 200);
noStroke();
rect(110, 110, 60, 50);
 
fill(255);
noStroke();
rect(120, 120, 60, 50);
 
fill(100, 100);
noStroke(255);
rect(220, 200, 63, 50);
 
fill(255);
noStroke();
rect(235, 210, 63, 50);

Comments

Nobody has said anything yet.