Unexpected Token: void problem
in
Programming Questions
•
1 year ago
int value = 0;
PShape ID;
PShape logo;
float angle;
float jitter;
void setup() {
size(610,200);
ID = loadShape("ID.svg");
logo = loadShape("logo.svg");
smooth();
frameRate(50);
shapeMode(CENTER);
}
void draw() {
background(255,255,255);
void mouseClicked() {
if(second() % 7.5 == 0)
jitter=2.5
angle = angle+jitter;
else {
jitter=0;
}
pushMatrix();
float c = cos(angle);
translate(width/7, height/2);
rotate(angle*TWO_PI/300);
shape(logo, 0, 0, 100, 100);
popMatrix();
translate(width/1.7, height/2);
shape(ID, 0, 0, 450, 125);
}
I'd be helpful if anyone could help me with my problem.
Thanks
1