eriknau

25Days-5

Dec 5th, 2015
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function onGLC(glc) {
  2.     glc.loop();
  3.     glc.size(400, 300);
  4.     glc.setDuration(1.5);
  5.     // glc.setFPS(20);
  6.     // glc.setMode("single");
  7.     // glc.setEasing(false);
  8.     glc.setMaxColors(35);
  9.     glc.styles.backgroundColor = "black";
  10.     var list = glc.renderList,
  11.         width = glc.w,
  12.         height = glc.h,
  13.         color = glc.color;
  14.     var lmargin = -100,
  15.         topOffset = 25,  
  16.         bottomOffset = 50;
  17.     for (var i = 0; i < width; i++) {
  18.         list.addLine({
  19.             lineWidth: 2,
  20.             strokeStyle: ["cyan","magenta"],
  21.             x0: [i*2+lmargin,i*1-topOffset],
  22.             y0: [0,100],
  23.             x1: [i*2+lmargin,i*1+bottomOffset],
  24.             y1: [height,height-50],
  25.             phase: i*0.01
  26.         })
  27.     };
  28.  
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment