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);
- glc.setFPS(30);
- glc.styles.backgroundColor = "black";
- var list = glc.renderList,
- width = glc.w,
- height = glc.h
- counter = 0
- palette = ["#361C30", "#652131", "#873639", "#A95C38", "#D1863A"];
- for(var i = width; i > 15; i -= 15) {
- var alpha = 1.0/width*i;
- list.addStar({
- x: width / 2,
- y: height / 2,
- outerRadius: [i*.75,i*1.5],
- innerRadius: [i * 0.5, i * 0.75],
- lineWidth: 1,
- stroke: true,
- strokeStyle: "white",
- fillStyle: palette[counter%5],
- fill: true,
- rotation: [0, 360/8],
- phase: -i / width,
- points: 6
- })
- counter++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement