Wednesday, October 13, 2010
Tapestry 4
// just type here
// and click "submit" when done
int frame = 0;
void setup() {
size(800,400);
background(255);
drawVignettingEffect();
smooth();
fill(255,0,0,10);
stroke(104,70);
strokeWeight(1);
}
void draw() {
frame++;
for( int i = 0; i < 100; i++ ) {
int x = int(random(0,width));
int y = int(random(0,height));
line(x+10.0*cos(x/20.0),y,x+10.0*cos((x+y)/10.0),y+10.0*sin((x+y)/10.0));
}
}
void drawVignettingEffect(){
smooth();
background(255);
strokeWeight(180);
noFill();
stroke(180,180,180,5);
translate(width/2,height/2);
for (int i = 0; i < 300; i+=10){
ellipse(0,0,max(width+i,height+i),max(width+i,height+i));
}
resetMatrix();
}
// and click "submit" when done
int frame = 0;
void setup() {
size(800,400);
background(255);
drawVignettingEffect();
smooth();
fill(255,0,0,10);
stroke(104,70);
strokeWeight(1);
}
void draw() {
frame++;
for( int i = 0; i < 100; i++ ) {
int x = int(random(0,width));
int y = int(random(0,height));
line(x+10.0*cos(x/20.0),y,x+10.0*cos((x+y)/10.0),y+10.0*sin((x+y)/10.0));
}
}
void drawVignettingEffect(){
smooth();
background(255);
strokeWeight(180);
noFill();
stroke(180,180,180,5);
translate(width/2,height/2);
for (int i = 0; i < 300; i+=10){
ellipse(0,0,max(width+i,height+i),max(width+i,height+i));
}
resetMatrix();
}
comments
loading...
Add a comment:

This sketch has a