Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onGLC(glc) {
- glc.loop();
- glc.size(400, 400);
- // glc.setDuration(5);
- // glc.setFPS(20);
- // glc.setMode('single');
- // glc.setEasing(false);
- //glc.styles.backgroundColor = "rgba(0,0,0,0.1)";
- glc.styles.backgroundColor = "black";
- var list = glc.renderList,
- width = glc.w,
- height = glc.h,
- color = glc.color;
- for(var i = 0; i<360; i++){
- var joint = list.addContainer({
- x: width/2,
- y: 120,
- rotation: [-i,i],
- phase: i*0.5
- })
- list.addLine({
- parent: joint,
- x0: 0,
- y0: 0,
- x1: 0,
- y1: 250-i,
- lineWidth: 3,
- strokeStyle: color.rgb(i*2,20,255-i)
- })
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment