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(2.5);
- glc.setFPS(25);
- // glc.setMode("single");
- // glc.setEasing(false);
- var list = glc.renderList,
- width = glc.w,
- height = glc.h,
- color = glc.color;
- // your code goes here:
- var gradient = color.createLinearGradient(0, -height/2, 0, height/2);
- gradient.addColorStop(0, "#C04848");
- gradient.addColorStop(1, "#480048");
- list.addRect({
- x:width/2,
- y:height/2,
- w:width,
- h:height,
- fillStyle: gradient
- });
- var num = 50;
- for (var i=0; i<num; i++) {
- list.addOval({
- x: width/2,
- y: [height*.3, height*.7],
- rx: 20+i*3,
- ry: (20+i*3)/2,
- lineWidth: 1,
- strokeStyle: "rgba(255,255,255,.5)",
- fill: false,
- stroke: true,
- lineWidth: 1,
- phase: .35/num*i
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement