Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onGLC(glc) {
- glc.loop();
- glc.size(400, 300);
- glc.setDuration(3);
- glc.setFPS(15);
- // glc.setMode("single");
- // glc.setEasing(false);
- glc.setMaxColors(30);
- glc.styles.backgroundColor = "black";
- var list = glc.renderList,
- width = glc.w,
- height = glc.h,
- color = glc.color;
- var lmargin = -100,
- topOffset = 80,
- bottomOffset = 20;
- for (var i = 0; i < width; i++) {
- list.addLine({
- lineWidth: 2,
- strokeStyle: ["red","blue"],
- x0: [i*2+lmargin,i-topOffset],
- y0: [125,0],
- x1: [i*2+lmargin,i+bottomOffset],
- y1: [height-20,height],
- phase: i*0.004
- })
- list.addLine({
- lineWidth: 1,
- strokeStyle: ["yellow","magenta"],
- x0: [i+lmargin-100,i*2-topOffset],
- y0: [0,100],
- x1: [i+lmargin,i*2+bottomOffset],
- y1: [height,height-50],
- phase: i*0.002
- })
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement