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