Advertisement
xeromino

ISOcol

Jan 14th, 2016
159
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 = 25
  13.         sz = 30;
  14.    
  15.         for (var i=0; i<num; i++) {
  16.             var x = 100 + sz/2+i*sz/2,
  17.                 y = 100 + sz/2+i*sz/2;
  18.             var c = 180/num*i;
  19.             list.addIsobox({
  20.                 x: x,
  21.                 y: y,
  22.                 size: sz,
  23.                 h: [40,90],
  24.                 colorTop: color.hsv(c, 1, 1),
  25.                 colorRight: color.hsv(c, 1, 0.75),
  26.                 colorLeft: color.hsv(c, 1, 0.5),
  27.                 phase: 1/num*i,
  28.                 stroke: true,
  29.                 lineWidth: 1,
  30.                 strokeStyle: "white"
  31.             });
  32.         }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement