Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //original
- function onGLC(glc) {
- glc.loop();
- glc.size(400, 400);
- glc.setDuration(1.5);
- glc.setFPS(22);
- // 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;
- var lmargin = -100,
- topOffset = 5,
- bottomOffset = 7;
- for (var i = 0; i < width; i++) {
- list.addLine({
- lineWidth: 2,
- strokeStyle: ["brown","magenta"],
- x0: [i*3,i*3-topOffset],
- y0: 0,
- x1: [i*3,i*3+bottomOffset],
- y1: height,
- phase: i*0.02
- })
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment