Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onGLC(glc) {
- glc.loop();
- glc.size(540, 540);
- glc.setDuration(2.5);
- glc.setFPS(30);
- glc.styles.backgroundColor = "#202020";
- // glc.setMode('single');
- // glc.setEasing(false);
- var list = glc.renderList,
- width = glc.w,
- height = glc.h,
- color = glc.color;
- // your code goes here:
- var w = 10,
- c = 0;
- step = 10;
- while( w<400) {
- c++;
- list.addRect({
- x: width / 2,
- y: height / 2,
- w: [5,w],
- h: [w,5],
- fill: false,
- stroke: true,
- strokeStyle: color.rgba(255,255,255,.5),
- lineWidth:1,
- rotation: [0+c*3,90+c*2],
- //rotation: [0,180],
- phase: c/150
- //phase: .5/c,
- //phase: Math.sin(w*0.001)
- });
- w += step;
- }
- list.addText({
- x: width-50,
- y: height-15,
- text: "p5art.tumblr.com",
- fontSize: 10,
- fillStyle: color.rgba(255,255,255,.5),
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement