Thursday, July 23, 2009
Scaffolding
float motion = 0.0;
void setup(){
size(800,500);
background(255);
}
void draw(){
rect(0,0,width, height);
fill(255,40);
float motion = 0.0;
motion = (motion + 0.3)%height;
smooth();
int box_space = 50;
int margin = 20;
motion = (motion + 0.3)%height;
for(int i = margin; i <500-margin; i += box_space){
for(int j = margin; j <800-margin; j += box_space) {
line(j,mouseY,mouseX,i);
strokeWeight(motion);
stroke(40);
}
}
}
void setup(){
size(800,500);
background(255);
}
void draw(){
rect(0,0,width, height);
fill(255,40);
float motion = 0.0;
motion = (motion + 0.3)%height;
smooth();
int box_space = 50;
int margin = 20;
motion = (motion + 0.3)%height;
for(int i = margin; i <500-margin; i += box_space){
for(int j = margin; j <800-margin; j += box_space) {
line(j,mouseY,mouseX,i);
strokeWeight(motion);
stroke(40);
}
}
}
info
submitted by: ric_lmcviews: 1704
This is a simple grid array which can be affected by cursor movement.
comments
loading...
Add a comment: