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. the23rd-operator reblogged this from dee-lirium
  17. michaelariel reblogged this from whichlight
  18. iasmiii reblogged this from braelinn
  19. insanitywelcomed reblogged this from raginggodess
  20. twiggyxgore reblogged this from dee-lirium
  21. jaaayyareee reblogged this from stayy-trippyy
  22. nataliajvb reblogged this from a-mental-mind-fuck
  23. manuellemartinenagual reblogged this from dee-lirium
  24. theviewfromtheafternoonn reblogged this from thisreve
  25. gblazin reblogged this from autosafari
  26. for3verking reblogged this from dee-lirium
  27. mycircleofsenses reblogged this from thekontainer
  28. 1firstpersonstory9 reblogged this from dee-lirium
  29. nykanykes reblogged this from angrythecake
  30. teasexual4lyf reblogged this from dee-lirium
  31. 6the6devil6 reblogged this from unrealistic-perceptions
  32. angrythecake reblogged this from alexmahanna
  33. youaintnocelebrity reblogged this from sacajaweaisaslut
  34. ciaohbella reblogged this from l0wkeyl0ve
  35. ulyh reblogged this from bizarree
  36. alexmahanna reblogged this from raginggodess