Advertisement
xeromino

iso3

Jan 14th, 2016
299
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);
  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.  
  13.         for (var i=0; i<3; i++) {
  14.             var endX = width/2 + Math.sin(360/4*i)*150;
  15.             var y = height/2 - i*25;
  16.             var endY = y + Math.cos(360/4*i)*150;
  17.             var c = 30 + 100/3*i;
  18.             list.addIsobox({
  19.                 x: [width / 2, endX],
  20.                 y: [y, endY],
  21.                 size: [100,150],
  22.                 h: 20,
  23.                 colorTop: color.hsv(c, 1, 1),
  24.                 colorRight: color.hsv(c, 1, 0.75),
  25.                 colorLeft: color.hsv(c, 1, 0.5)
  26.  
  27.             });
  28.         }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement