I have an assignment due today and I need some advice.
I have to plan and create some compelling visual art that visibly
changes in real times. I trying to transforming the menu bar into close bar
but I not sure how can I do it.
int a =520;
int b =350;
int c =250;
int aSpeed =4;
int bSpeed =4;
boolean paused;
void mouseClicked(){
paused =!paused;
if(paused)
noLoop();
else
loop();
}
void setup(){
size(1280,720);
smooth();
}
void draw(){
background(0);
stroke(random(255),random(255),random(255));
strokeWeight(10);
strokeCap(SQUARE);
a = a+ aSpeed;
if(a> width || a<0){
aSpeed = aSpeed *-1;
}
b = b+ bSpeed;
if(b>height || b<0){
bSpeed = bSpeed *-1;
}
line(a,b,a+c,b);
line(a,b+30,a+c,b+30);
line(a,b+60,a+c,b+60);
}