Advertisement
xeromino

flick

Jan 15th, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function onGLC(glc) {
  2.     glc.loop();
  3.     glc.size(540, 540);
  4.     glc.setDuration(2);
  5.     glc.setFPS(30);
  6. //     glc.setMode('single');
  7. //     glc.setEasing(false);
  8.     var list = glc.renderList,
  9.         width = glc.w,
  10.         height = glc.h,
  11.         color = glc.color
  12.         num = 12,
  13.         sz = 30;
  14.    
  15.         for (var i=0; i<num; i++) {
  16.             var y = height-75-(height-150)/num*i;
  17.             var c = 90/num*i;
  18.             list.addIsobox({
  19.                 x: width/2,
  20.                 y: y,
  21.                 size: [50,10],
  22.                 h: [30,6],
  23.                 colorTop: color.hsv(c, 1, 1),
  24.                 colorRight: color.hsv(c, 1, 0.75),
  25.                 colorLeft: color.hsv(c, 1, 0.5),
  26.                 phase: -1/num*i,
  27.             });
  28.         }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement