Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onGLC(glc) {
- glc.loop();
- glc.size(540, 540);
- glc.setDuration(2);
- glc.setFPS(30);
- // glc.setMode('single');
- // glc.setEasing(false);
- var list = glc.renderList,
- width = glc.w,
- height = glc.h,
- color = glc.color
- num = 25
- sz = 30;
- for (var i=0; i<num; i++) {
- var x = 100 + sz/2+i*sz/2,
- y = 100 + sz/2+i*sz/2;
- var c = 180/num*i;
- list.addIsobox({
- x: x,
- y: y,
- size: sz,
- h: [40,90],
- colorTop: color.hsv(c, 1, 1),
- colorRight: color.hsv(c, 1, 0.75),
- colorLeft: color.hsv(c, 1, 0.5),
- phase: 1/num*i,
- stroke: true,
- lineWidth: 1,
- strokeStyle: "white"
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement