Advertisement
xeromino

torch

Jan 18th, 2016
221
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.styles.backgroundColor = "#202020";
  7. //     glc.setMode('single');
  8. //     glc.setEasing(false);
  9.     var list = glc.renderList,
  10.         width = glc.w,
  11.         height = glc.h,
  12.         color = glc.color
  13.         num = 15,
  14.         sz = 30;
  15.    
  16.         for (var i=0; i<num; i++) {
  17.             var y = height-75-(height-250)/num*i;
  18.             var c = 0+45.0/num*i;
  19.             list.addIsobox({
  20.                 x: width/2,
  21.                 y: y,
  22.                 size: [25+i*10,20+i*2],
  23.                 h: [100,20+i*1],
  24.                 colorTop: color.hsva(c, 1, 1,.5),
  25.                 colorRight: color.hsva(c, 1, 0.75,.5),
  26.                 colorLeft: color.hsva(c, 1, 0.5,.5),
  27.                 phase: i/num,
  28.             });
  29.         }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement