Advertisement
xeromino

cube1

Nov 24th, 2015
192
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.setMode("single");
  8.     //glc.styles.backgroundColor = "rgba(255,255,255,.4)";
  9.     // glc.setEasing(false);
  10.    
  11.     var list = glc.renderList,
  12.         width = glc.w,
  13.         height = glc.h;
  14.  
  15.     // your code goes here:
  16.     var num = 15;
  17.     for (var i=0; i<num; i++) {
  18.     list.addCube({
  19.         x: width/2,
  20.         y: height/2,
  21.         z: 0,
  22.         lineWidth: .75,
  23.         strokeStyle: "rgba(0,0,0,.5)",
  24.         size: [50+i*10,50+i*13],
  25.         rotationX: [30,120],
  26.         rotationY: 160,
  27.         rotationZ: [0,360],
  28.         phase: .25/num*i,
  29.     });
  30.     }
  31.  
  32.    
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement