Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onGLC(glc) {
- glc.loop();
- glc.size(450, 200);
- glc.setDuration(3);
- // glc.setFPS(20);
- // glc.setMode("single");
- // glc.setEasing(false);
- // glc.setMaxColors(256);
- glc.styles.backgroundColor = "black";
- var list = glc.renderList,
- width = glc.w,
- height = glc.h,
- color = glc.color;
- // your code goes here:
- list.addRect({
- fill: true,
- fillStyle: color.rgb(0,0,190),
- x: 425,
- y: 100,
- h: height,
- w: 50,
- shake: [0,5]
- })
- list.addSegment({
- strokeStyle: "blue",
- x0: -150,
- y0: Math.random() * height,
- x1: 400,
- y1: Math.random() * height,
- segmentLength: 20,
- lineWidth: 20
- })
- for (var i = 0; i < 50; i++) {
- list.addSegment({
- strokeStyle: color.rgb(Math.random() * 255,0,255),
- x0: -50,
- y0: Math.random() * height,
- x1: 400,
- y1: Math.random() * height,
- segmentLength: 40,
- phase: i*0.003,
- shake: [0,5]
- });
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement