Advertisement
xeromino

ripples

Nov 25th, 2015
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function onGLC(glc) {
  2.     glc.loop();
  3.     // glc.playOnce();
  4.     glc.size(540, 540);
  5.     glc.setDuration(3);
  6.     glc.setFPS(30);
  7.     glc.styles.backgroundColor = "rgba(255,255,255,.2)";
  8.     // glc.setMode("single");
  9.     // glc.setEasing(false);
  10.    
  11.     var list = glc.renderList,
  12.         width = glc.w,
  13.         height = glc.h,
  14.         color = glc.color;
  15.  
  16.     // your code goes here:
  17.    
  18.     var num = 8;
  19.     for (var i=0; i<num; i++) {
  20.     list.addCircle({
  21.         x: width/2,
  22.         y: height/2,
  23.         radius: 230/num*i,
  24.         fill: false,
  25.         stroke: true,
  26.         lineWidth: 1,
  27.         shake:[0,10],
  28.         phase: 1.0/num*i
  29.     });
  30.     }
  31.  
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement