Advertisement
xeromino

glc

Nov 14th, 2015
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.     var width = 520, height = 520;
  3.    
  4.     glc.init(width, height);
  5.     glc.setFPS(45);
  6.     glc.setDuration(2.5);
  7.     glc.styles.backgroundColor = "black";
  8.     glc.loop();
  9.    
  10.     var list = glc.renderList;
  11.     var num = 50;
  12.  
  13.     for (var i=0; i<num; i++) {
  14.         list.addBezierCurve({
  15.             strokeStyle: "rgba(255, 255,255,.3)",
  16.             lineWidth: 1,
  17.             x0: 50+i*5,
  18.             y0: [50,100],
  19.             x1: 510,
  20.             y1: 164,
  21.             x2: 9,
  22.             y2: 296,
  23.             x3: [150,457],
  24.             y3: 300+i*3,
  25.             phase: 1.0/num*i
  26.         });
  27.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement