Advertisement
eriknau

Gif Loop Coder Circles

Nov 28th, 2015
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function onGLC(glc) {
  2.     glc.loop();
  3.     glc.styles.backgroundColor = "#fff";
  4.     // glc.playOnce();
  5.      glc.size(300, 300);
  6.     glc.setDuration(4);
  7.     // glc.setFPS(20);
  8.     // glc.setMode("single");
  9.     // glc.setEasing(false);
  10.     glc.setMaxColors(20);
  11.     var list = glc.renderList,
  12.         width = glc.w,
  13.         height = glc.h;
  14.  
  15.     for (var i = 0; i < 50; i++) {
  16.         list.addCircle({
  17.             x: [Math.random() * width*2-width/2,Math.random() * width*2-width/2],
  18.             // y: [Math.random() * height,Math.random() * height],
  19.             y: 150,
  20.             lineWidth: 2,
  21.             stroke: true,
  22.             strokeStyle: "blue",
  23.             fillStyle: ["rgba(0,0,255,0.05)","rgba(255,0,255,0.05)"],
  24.             phase:  i* 0.05,
  25.             radius: Math.random() * 400 + 100
  26.         });
  27.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement