Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onGLC(glc) {
- glc.loop();
- glc.size(540,540);
- glc.setFPS(33);
- glc.setDuration(3);
- glc.styles.backgroundColor = "rgba(0,0,0,.3)";
- var list = glc.renderList,
- width = glc.w,
- height = glc.h;
- // 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],
- stroke: true,
- lineWidth: 1,
- strokeStyle: "rgba(255,255,255,.5)",
- //strokeStyle: ["#F7C716","#FC892B", "#EB543D", "#D41E7C", "#5E124A"],
- fill: false,
- phase: 0.15/n*i,
- shake: 5
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement