TUT­O­R­I­A­L 2

by Sonia White
  • Show Code
/** @peep sketch */
 
 
size(400,400);
background(0,0,0);
 
//CLOVERS
 
  //DESCRIPTORS
strokeWeight(2);
fill(153,253,213);
strokeCap(ROUND);
stroke(255, 255, 255);
 
//SHAPES
 
int x=0
triangle(x+20,x,x+40,x,x+30,x+20);
triangle(x+40,x+30,x+60,x+20,x+60,x+40);
triangle(x+30,x+40,x+40,x+60,x+20,x+60);
triangle(x,x+20,x+20,x+30,x,x+40);
 
int x=50
triangle(x+20,x,x+40,x,x+30,x+20);
triangle(x+40,x+30,x+60,x+20,x+60,x+40);
triangle(x+30,x+40,x+40,x+60,x+20,x+60);
triangle(x,x+20,x+20,x+30,x,x+40);
 
 
int x=100
triangle(x+20,x,x+40,x,x+30,x+20);
triangle(x+40,x+30,x+60,x+20,x+60,x+40);
triangle(x+30,x+40,x+40,x+60,x+20,x+60);
triangle(x,x+20,x+20,x+30,x,x+40);
 
int x=150
triangle(x+20,x,x+40,x,x+30,x+20);
triangle(x+40,x+30,x+60,x+20,x+60,x+40);
triangle(x+30,x+40,x+40,x+60,x+20,x+60);
triangle(x,x+20,x+20,x+30,x,x+40);
 
int x=200
triangle(x+20,x,x+40,x,x+30,x+20);
triangle(x+40,x+30,x+60,x+20,x+60,x+40);
triangle(x+30,x+40,x+40,x+60,x+20,x+60);
triangle(x,x+20,x+20,x+30,x,x+40);
 
int x=250
triangle(x+20,x,x+40,x,x+30,x+20);
triangle(x+40,x+30,x+60,x+20,x+60,x+40);
triangle(x+30,x+40,x+40,x+60,x+20,x+60);
triangle(x,x+20,x+20,x+30,x,x+40);
 
int x=300
triangle(x+20,x,x+40,x,x+30,x+20);
triangle(x+40,x+30,x+60,x+20,x+60,x+40);
triangle(x+30,x+40,x+40,x+60,x+20,x+60);
triangle(x,x+20,x+20,x+30,x,x+40);
 
int x=350
triangle(x+20,x,x+40,x,x+30,x+20);
triangle(x+40,x+30,x+60,x+20,x+60,x+40);
triangle(x+30,x+40,x+40,x+60,x+20,x+60);
triangle(x,x+20,x+20,x+30,x,x+40);
 
int x=400
triangle(x+20,x,x+40,x,x+30,x+20);
triangle(x+40,x+30,x+60,x+20,x+60,x+40);
triangle(x+30,x+40,x+40,x+60,x+20,x+60);
triangle(x,x+20,x+20,x+30,x,x+40);
  • Show Code
/** @peep sketch */
 
void setup(){
  size (400, 400);
background(0);
frameRate(10)
strokeWeight(5)
}
 
 
//CONFETTI. LOL.
int i=0;
 
void draw() {line(pmouseX, pmouseY, mouseX, mouseY);
i=i+1;
if (i>0) stroke (random(255), random(255), random(255));
}
 
stroke (random(255), random(255), random(255));

Comments

Nobody has said anything yet.