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