eriknau

25Days-14

Dec 14th, 2015
76
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(3);
  5.     glc.setFPS(15);
  6.     // glc.setMode("single");
  7.     // glc.setEasing(false);
  8.     glc.setMaxColors(7);
  9.         glc.styles.backgroundColor = "white";
  10.     var list = glc.renderList,
  11.         width = glc.w,
  12.         height = glc.h,
  13.         color = glc.color;
  14.  
  15.     var circ;
  16.     for(var i=0;i<90;i++) {
  17.         circ = list.addCircle({
  18.             lineWidth: 2,
  19.             stroke: true,
  20.             strokeStyle: "black",
  21.             fillStyle:color.rgba(255,0,255,0.1),
  22.             parent:circ,
  23.             radius: 180,
  24.             x:circ? 2*i : width/2,
  25.             y:circ? 0 : width/2,
  26.             rotation:[53,50]
  27.         });
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment