- Show Sketch
/** @peep sketchcode */
//Tutorial 3 Exercise
size(200,200);
int x;
int y;
noiseSeed(0);
float i=random(0,1);
float r=random(1);
float g=random(1);
float b=random(1);
float n=noise(i);
for (x=10 ; x<width;x+=10) {
for (y=10; y<height; y+=10) {
noStroke();
if (random(1)<0.5){
fill(255*r,255*g,255*b);
ellipse(x,y,7,7);
} else {
fill (255*g,255*b,255*r,255*n);
rectMode(CENTER);
rect(x,y,10*n,10*n);
}
if ((i<0.4) && (i>0.2)) {
stroke(255);
strokeWeight(1);
line(x,y,x+100*n,y+100*n);
}
if (i<0.2) {
stroke(0);
strokeWeight(1);
line(x,y,x-4,y+4);
}
}
}
Nothing in the gallery yet!
Comments
Nobody has said anything yet.