Advertisement
xeromino

deepSpace

Dec 10th, 2015
397
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 = "#202020";
  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.         ox = width/2,
  16.         oy = height/2,
  17.         TWO_PI = Math.PI*2;
  18.  
  19.     // your code goes here:
  20.  
  21.     var num = 100;
  22.    
  23.     for (var i=0; i<num; i++) {
  24.         list.addOval({
  25.             x: ox,
  26.             y: oy,
  27.             rx: [i+10,i+100],
  28.             ry: [i+25,i+50],
  29.             startAngle:90+i,
  30.             endAngle: 260+i,
  31.             rotation: [i,i+180],
  32.             lineWidth: 1,
  33.             fill: false,
  34.             stroke: true,
  35.             strokeStyle: "rgba(255,255,255,.25)",
  36.             phase: i/num
  37.  
  38.         });
  39.     }
  40.  
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement