Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onGLC(glc) {
- glc.loop();
- glc.size(400, 400);
- glc.setDuration(2.5);
- glc.setFPS(30);
- glc.styles.backgroundColor = "black";
- var list = glc.renderList,
- width = glc.w,
- height = glc.h;
- for(var i = 15; i < width; i += 15) {
- var alpha = 1.0/width*i;
- list.addStar({
- x: width / 2,
- y: height / 2,
- outerRadius: [i,i*1.25],
- innerRadius: [i * 0.5, i * 0.75],
- lineWidth: 1,
- stroke: true,
- strokeStyle: "rgba(255,255,255," + alpha +")",
- fill: false,
- rotation: [0, 360/4],
- phase: -i / width/2,
- points: 5
- })
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement