Week 2

by Tyler Slape
  • Show Code
  • Show Sketch
/** @peep sketch */
 
/** @peep sketchcode */
 
size(480,480);
stroke(0,0,255);
 
for(int y = 5; y<480; y+=60){
  for(int y2 = 5; y2<480; y2+=60){
    stroke(int(random(255)),int(random(255)),int(random(255)));
    strokeWeight(4);
    fill(int(random(255)),int(random(255)),int(random(255)));
    int random = int(random(3));
    if(random == 2){
      triangle(y+25,y2,y,y2+50,y+50,y2+50);
    }
    if(random == 1){
      ellipse(y+25,y2+25,50,50);
    }
    if(random == 0){
      rect(y,y2,50,50);
    }
  }
}
/** this wont work in peep but if you put in the processing program it will */

Comments

Nobody has said anything yet.