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(4);
- // glc.setFPS(20);
- // glc.setMode("single");
- glc.setEasing(false);
- // glc.setMaxColors(256);
- glc.styles.backgroundColor = "rgba(0,0,0,0.3)";
- var list = glc.renderList,
- width = glc.w,
- height = glc.h,
- color = glc.color;
- for (var i = 0; i < 500; i++) {
- list.addCircle({
- x: Math.random()*width,
- y: Math.random()*height,
- radius: Math.random()*2,
- fill: [true,false],
- fillStyle: color.rgba(Math.random()*100+155,Math.random()*100+155,Math.random()*100+155,1),
- stroke: false,
- phase: i*0.01
- })
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement