Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onGLC(glc) {
- glc.loop();
- glc.size(500, 400);
- glc.setDuration(5);
- // glc.setFPS(20);
- // glc.setMode("single");
- // glc.setEasing(false);
- // glc.setMaxColors(256);
- glc.styles.backgroundColor = "white";
- var list = glc.renderList,
- width = glc.w,
- height = glc.h,
- color = glc.color;
- list.addRect({
- x: 0,
- y: 0,
- w: width,
- h: height,
- fillStyle: color.rgb(100,100,255),
- drawFromCenter: false,
- stroke: false
- })
- for (var i = 0; i < 4; i++) {
- list.addOval({
- fillStyle: "green",
- stroke: false,
- x: (i+1)*100,
- y: height,
- rx: 100,
- ry: 70
- })
- };
- list.addCircle({
- stroke:true,
- fill: false,
- lineWidth:1,
- x:width+220,
- y:100,
- radius:370,
- startAngle: 143,
- endAngle: 190
- })
- for (var i = 0; i < 30; i++) {
- list.addCircle({
- x: i*12,
- y: function(t) {
- return 50 + Math.sin(t * Math.PI * 4) * 15;
- },
- radius: i>0 ? i : i/3,
- fill: true,
- fillStyle: color.rgba(i*10,0,0,0.8),
- stroke: false,
- phase: i*0.01
- })
- };
- for (var i = 1; i < 7; i++) {
- list.addBezierSegment({
- strokeStyle: "rgba(255, 255,255,.5)",
- lineWidth: 1,
- x0: Math.random()*20+width-20,
- y0: [Math.random()*200,Math.random()*200],
- x1: Math.random()*50+width-50,
- y1: [Math.random()*200,Math.random()*200],
- x2: Math.random()*200+width-200,
- y2: [Math.random()*200,Math.random()*200],
- x3: Math.random()*20,
- y3: [Math.random()*200,Math.random()*200],
- percent: 5,
- phase: i*0.06
- });
- };
- list.addLine({
- x0: 445,
- y0: height-90,
- x1: 445,
- y1: height-40,
- strokeStyle: "tan",
- lineWidth: 2
- })
- list.addLine({
- x0: 445,
- y0: height-70,
- x1: 425,
- y1: height-83,
- strokeStyle: "tan",
- lineWidth: 2
- })
- list.addCircle({
- x: 445,
- y: height-90,
- radius: 10,
- fill: true,
- fillStyle: "tan",
- stroke: false,
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment