Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onGLC(glc) {
- glc.loop();
- glc.styles.backgroundColor = "#fff";
- // glc.playOnce();
- glc.size(300, 300);
- glc.setDuration(4);
- // glc.setFPS(20);
- // glc.setMode("single");
- // glc.setEasing(false);
- glc.setMaxColors(20);
- var list = glc.renderList,
- width = glc.w,
- height = glc.h;
- for (var i = 0; i < 50; i++) {
- list.addCircle({
- x: [Math.random() * width*2-width/2,Math.random() * width*2-width/2],
- // y: [Math.random() * height,Math.random() * height],
- y: 150,
- lineWidth: 2,
- stroke: true,
- strokeStyle: "blue",
- fillStyle: ["rgba(0,0,255,0.05)","rgba(255,0,255,0.05)"],
- phase: i* 0.05,
- radius: Math.random() * 400 + 100
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement