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(35);
- glc.setMode("single");
- glc.styles.backgroundColor = "rgba(0,0,0,.3)";
- // glc.setEasing(false);
- var list = glc.renderList,
- width = glc.w,
- height = glc.h,
- color = glc.color,
- ox = width/2,
- oy = height/2,
- TWO_PI = Math.PI*2;
- // your code goes here:
- var num = 30;
- for (var i=0; i<num; i++) {
- list.addCube({
- x: ox,
- y: oy,
- z: 100,
- size:[0,300],
- shake:5,
- lineWidth: 1,
- strokeStyle: ["black", "rgba(255,255,255,1)"],
- globalAlpha: [0.7,0],
- rotationX: [0,90],
- rotationY: [0,90],
- rotationZ: [0,180],
- phase: i/num/3
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement