On the night train, coming home.
int width=600;
int height=600;
int numLines = 20;
float dx = float(width)/numLines;
float T = 13;
int t = 0;
int d = 0;

void setup(){
  println(dx);
  frameRate(15);
  colorMode(HSB,360,100,100,100);
  size(width,height);
  background(0,0,100);
}

void draw(){
  background(0,0,100);
  for(int i=0; i<numLines; i++){
   float thickness = T*(1+sin(radians(((t+i)*dx)/width)*360));
   wave(dx*i, thickness); 
  }
  t+=1;
 
 // save("images/"+str(t)+".gif"); 
  //if(t==numLines){noLoop();}
}

void wave(float x, float thick){
  strokeWeight(thick);
  line(x,0,x,height);
  stroke(0,0,0,100);
}

On the night train, coming home.

int width=600;
int height=600;
int numLines = 20;
float dx = float(width)/numLines;
float T = 13;
int t = 0;
int d = 0;

void setup(){
  println(dx);
  frameRate(15);
  colorMode(HSB,360,100,100,100);
  size(width,height);
  background(0,0,100);
}

void draw(){
  background(0,0,100);
  for(int i=0; i<numLines; i++){
   float thickness = T*(1+sin(radians(((t+i)*dx)/width)*360));
   wave(dx*i, thickness); 
  }
  t+=1;
 
 // save("images/"+str(t)+".gif"); 
  //if(t==numLines){noLoop();}
}

void wave(float x, float thick){
  strokeWeight(thick);
  line(x,0,x,height);
  stroke(0,0,0,100);
}

  1. floatingfluttering reblogged this from anydogif
  2. thefuturisticjaisini reblogged this from whichlight
  3. omg-basedblog reblogged this from naturalresponse
  4. dub9dope reblogged this from beatastic
  5. beatastic reblogged this from heavenlyrecordings
  6. andreagq reblogged this from imnotafuckingaddams
  7. hmoverthere reblogged this from stayy-trippyy
  8. turnon-bootup-jackin reblogged this from hardcore-vanilla
  9. hardcore-vanilla reblogged this from dee-lirium
  10. tnystn reblogged this from heavenlyrecordings
  11. butterclump reblogged this from whichlight
  12. iasmiii reblogged this from braelinn
  13. insanitywelcomed reblogged this from norumnoglory
  14. twiggyxgore reblogged this from dee-lirium
  15. jaaayyareee reblogged this from stayy-trippyy
  16. nataliajvb reblogged this from a-mental-mind-fuck
  17. manuellemartinenagual reblogged this from dee-lirium
  18. theviewfromtheafternoonn reblogged this from thisreve
  19. gblazin reblogged this from autosafari
  20. for3verking reblogged this from dee-lirium
  21. mycircleofsenses reblogged this from thekontainer
  22. 1firstpersonstory9 reblogged this from dee-lirium
  23. nykanykes reblogged this from angrythecake
  24. 6the6devil6 reblogged this from unrealistic-perceptions
  25. angrythecake reblogged this from alexmahanna
  26. youaintnocelebrity reblogged this from sacajaweaisaslut
  27. ciaohbella reblogged this from l0wkeyl0ve
  28. ulyh reblogged this from bizarree
  29. alexmahanna reblogged this from norumnoglory
  30. l0wkeyl0ve reblogged this from dee-lirium
  31. sacajaweaisaslut reblogged this from light-and-suffix
  32. shantelisawsum reblogged this from norumnoglory
  33. bizarree reblogged this from dee-lirium
  34. soul-goldsamurai reblogged this from a-mental-mind-fuck