Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onGLC(glc) {
- glc.loop();
- glc.size(400, 280);
- glc.setDuration(4);
- glc.setFPS(20);
- // glc.setMode("single");
- // glc.setEasing(false);
- glc.setMaxColors(100);
- glc.styles.backgroundColor= "orange";
- var list = glc.renderList,
- width = glc.w,
- height = glc.h,
- color = glc.color;
- var sticks = function(rot1,rot2,r1,g1,b1,r2,g2,b2) {
- var counter = 0;
- for (var i = 5; i >= 0; i--) {
- for (var j = 8; j >= 0; j--) {
- var container = list.addContainer({
- x: (j+1)*40,
- y: (i+1)*40,
- rotation: [rot1,rot2],
- phase: counter*0.006
- })
- list.addLine({
- x0: 0,
- y0: 20,
- x1: 0,
- y1: -20,
- stroke:true,
- strokeStyle: [color.rgb(r1,g1,b1),color.rgb(r2,g2,b2)],
- parent: container
- })
- counter++;
- }
- }
- }
- for (var i = 0; i < 3; i++) {
- sticks(i*90,(i+1)*180,(i+1)*30,(i+1)*60,(i+1)*90,(i+1)*60,(i+1)*90,(i+1)*120);
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment