Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onGLC(glc) {
- glc.loop();
- // glc.playOnce();
- glc.size(540, 540);
- glc.setDuration(3);
- glc.setFPS(30);
- glc.styles.backgroundColor = "#202020";
- //glc.setMode("single");
- // glc.setEasing(false);
- var list = glc.renderList,
- width = glc.w,
- height = glc.h,
- color = glc.color,
- ox = width/2,
- oy = height/2,
- TWO_PI = Math.PI*2;
- // your code goes here:
- var num = 100;
- for (var i=0; i<num; i++) {
- list.addOval({
- x: ox,
- y: oy,
- rx: [i+10,i+100],
- ry: [i+25,i+50],
- startAngle:90+i,
- endAngle: 260+i,
- rotation: [i,i+180],
- lineWidth: 1,
- fill: false,
- stroke: true,
- strokeStyle: "rgba(255,255,255,.25)",
- phase: i/num
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement