Advertisement
eriknau

25Days-16

Dec 16th, 2015
77
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(4);
  5.     // glc.setFPS(20);
  6.     // glc.setMode("single");
  7.     glc.setEasing(false);
  8.     // glc.setMaxColors(256);
  9.         glc.styles.backgroundColor = "rgba(0,0,0,0.3)";
  10.     var list = glc.renderList,
  11.         width = glc.w,
  12.         height = glc.h,
  13.         color = glc.color;
  14.  
  15.         for (var i = 0; i < 500; i++) {
  16.             list.addCircle({
  17.                 x: Math.random()*width,
  18.                 y: Math.random()*height,
  19.                 radius: Math.random()*2,
  20.                 fill: [true,false],
  21.                 fillStyle: color.rgba(Math.random()*100+155,Math.random()*100+155,Math.random()*100+155,1),
  22.                 stroke: false,
  23.                 phase: i*0.01
  24.             })
  25.         };
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement