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.setEasing(false);
- var list = glc.renderList,
- width = glc.w,
- height = glc.h,
- color = glc.color,
- ox = width/2,
- oy = height/2;
- // your code goes here:
- var n = 20;
- for (var i=0; i<n; i++) {
- list.addPoly({
- x: width/2,
- y: height/2,
- radius: [width*.2, width*.4],
- sides: [3,8],
- rotation: [90,270],
- fillStyle: "white",
- phase: 0.15/n*i,
- shake: 5,
- shadowColor: "rgba(0, 0, 0, 0.50)",
- shadowOffsetX: 5,
- shadowOffsetY: 5,
- shadowBlur: 20
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement