eriknau

heart

Dec 21st, 2015
93
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, 400);
  4. //     glc.setDuration(5);
  5. //     glc.setFPS(20);
  6.  //    glc.setMode('single');
  7. //     glc.setEasing(false);
  8.     //glc.styles.backgroundColor = "rgba(0,0,0,0.1)";
  9.     glc.styles.backgroundColor = "black";
  10.     var list = glc.renderList,
  11.         width = glc.w,
  12.         height = glc.h,
  13.         color = glc.color;
  14.  
  15.     for(var i = 0; i<360; i++){
  16.         var joint = list.addContainer({
  17.             x: width/2,
  18.             y: 120,
  19.             rotation: [-i,i],
  20.             phase: i*0.5
  21.         })
  22.         list.addLine({
  23.             parent: joint,
  24.             x0: 0,
  25.             y0: 0,
  26.             x1: 0,
  27.             y1: 250-i,
  28.             lineWidth: 3,
  29.             strokeStyle: color.rgb(i*2,20,255-i)
  30.         })        
  31.     }
  32.  
  33.  
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment