Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onGLC(glc) {
- glc.loop();
- // glc.playOnce();
- glc.size(540, 540);
- glc.setDuration(3);
- glc.setFPS(30);
- glc.setMode("single");
- //glc.styles.backgroundColor = "rgba(255,255,255,.4)";
- // glc.setEasing(false);
- var list = glc.renderList,
- width = glc.w,
- height = glc.h;
- // your code goes here:
- var num = 15;
- for (var i=0; i<num; i++) {
- list.addCube({
- x: width/2,
- y: height/2,
- z: 0,
- lineWidth: .75,
- strokeStyle: "rgba(0,0,0,.5)",
- size: [50+i*10,50+i*13],
- rotationX: [30,120],
- rotationY: 160,
- rotationZ: [0,360],
- phase: .25/num*i,
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement