Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onGLC(glc) {
- glc.loop();
- glc.size(400, 300);
- glc.setDuration(5);
- // glc.setFPS(20);
- // glc.setMode("single");
- glc.setEasing(false);
- // glc.setMaxColors(256);
- glc.styles.backgroundColor = "#452505";
- var list = glc.renderList,
- width = glc.w,
- height = glc.h,
- color = glc.color;
- // your code goes here:
- for (var i = 0; i < 22; i++) {
- list.addSegment({
- strokeStyle: ["blue","red"],
- x0: i * 15 - 100,
- y0: 0,
- x1: i * 15 + 200,
- y1: height,
- segmentLength: 200,
- lineWidth: 5,
- // phase: i*0.005
- });
- list.addSegment({
- strokeStyle: ["white","green"],
- x0: i * 15 + 200,
- y0: 0,
- x1: i * 15 - 100,
- y1: height,
- segmentLength: 200,
- lineWidth: 5,
- // phase: i*0.005
- });
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment