Advertisement
xeromino

tri

Nov 23rd, 2015
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function onGLC(glc) {
  2.    
  3.     glc.loop();
  4.     glc.size(540,540);
  5.     glc.setFPS(33);
  6.     glc.setDuration(3);
  7.     glc.styles.backgroundColor = "rgba(0,0,0,.3)";
  8.  
  9.    
  10.     var list = glc.renderList,
  11.        width = glc.w,
  12.        height = glc.h;
  13.  
  14.     // your code goes here:
  15.  
  16.     var n = 20;
  17.    
  18.         for (var i=0; i<n; i++) {
  19.             list.addPoly({
  20.                 x: width/2,
  21.                 y: height/2,
  22.                 radius: [width*.2, width*.4],
  23.                 sides: [3,8],
  24.                 rotation: [90,270],
  25.                 stroke: true,
  26.                 lineWidth: 1,
  27.                 strokeStyle: "rgba(255,255,255,.5)",
  28.                 //strokeStyle: ["#F7C716","#FC892B", "#EB543D", "#D41E7C", "#5E124A"],
  29.                 fill: false,
  30.                 phase: 0.15/n*i,
  31.                 shake: 5
  32.             });
  33.         }
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement