more than 1000 lines

 

 

clair chin 1000 lines

umbrellagif

 

float speed = 0.05;
float y=-400;
float x=0;

void setup() {
size(400, 400);
smooth();
}

void draw(){
int stagger = 0;
background(0);
stroke(255);
for (int j= 0; j < 2* height;j=j+height/20){
if (stagger==5){
stagger=0;}
else {
stagger=5;}
for(int i=0; i < width;i = i + width/40){
line(x+i+stagger,y+j,x+i+stagger,y+j+15);
if (y>0) {
y = -400;
}
}
y= y+speed;
}
int cx=mouseX;
int cy=mouseY-15;
int rectx=cx-15;
int recty=cy;
noStroke();
fill(255);
ellipse(cx,cy,30,30);
fill(0);
stroke(0);
rect(rectx,recty,30,420);
stroke(255);
line(cx,cy,cx,cy+20);
}

Comments are closed.