int yPos;
int div;
void setup() {
  size(500, 500);
  frameRate(1);
  background(211);
 
 
}
void draw(){
  noStroke();
fill(211,75);
rect(0,0,width,height);
  div=frameCount+1;
  stroke(255);
  strokeWeight(frameCount/1.5);
  strokeCap(SQUARE);
   
  if (frameCount==1) {  
    
    line(0, height/2, 26.3, height/2);
    line(500, height/2, 473.7, height/2);
  }
  if (frameCount==2) {
      for (int i=0; i<frameCount; i++) {
      yPos=height/ div *(i+1);
      line (26.3, yPos, 52.6, yPos);
      line (473.7, yPos,447.4,yPos);
    }
  }
  if (frameCount==3) {
    for (int i=0; i<frameCount; i++) {
      yPos=height/ div*(i+1);
      line (52.6, yPos, 78.9, yPos);
      line (447.4, yPos,421.1,yPos);
    }
  }
  if (frameCount==4) {
    for (int i=0; i<frameCount; i++) {
      yPos=height/ div*(i+1);
      line (78.9, yPos, 105.2, yPos);
      line (421.1, yPos,394.8,yPos);
    }
  }
   if (frameCount==5) {
    for (int i=0; i<frameCount; i++) {
      yPos=height/ div*(i+1);
      line (105.2, yPos, 131.5, yPos);
      line (394.8, yPos,368.5,yPos);
    }
  }
    if (frameCount==6) {
    for (int i=0; i<frameCount; i++) {
      yPos=height/ div*(i+1);
      line (131.5, yPos, 157.8, yPos);
       line (368.5, yPos,342.2,yPos);
    }
  }
    if (frameCount==7) {
    for (int i=0; i<frameCount; i++) {
      yPos=height/ div*(i+1);
      line (157.8, yPos, 184.1, yPos);
       line (342.2, yPos, 315.9, yPos);
    }
  }
    if (frameCount==8) {
    for (int i=0; i<frameCount; i++) {
      yPos=height/ div*(i+1);
      line (184.1, yPos, 210.4, yPos);
      line (315.9, yPos, 289.6, yPos);
    }
  }
    if (frameCount==9) {
    for (int i=0; i<frameCount; i++) {
      yPos=height/ div*(i+1);
      line (210.4, yPos, 236.7, yPos);
       line (289.6, yPos, 263.3, yPos);
    }
  }
    if (frameCount==10) {
    for (int i=0; i<frameCount; i++) {
      yPos=height/ div*(i+1);
      line (236.7, yPos, 263, yPos);      
    }
  }
if(frameCount>10){
  frameCount=0;
 // background(211);
}
 // Saves each frame as screen-0000.tif, screen-0001.tif, etc.
  saveFrame();
}
 
Loader
Published:

Loader

10'' generative graphic loader

Published: