expected EOF, found else, Why exactly?
in
Programming Questions
•
6 months ago
So I'm extremely new to programming and so I wanted to try making a basic face, I made one, so I wanted to try and do something like make it wink, that didn't go so well, as it says " expecting EOF, found 'else' ", could someone point out where my fatal error is?
if ((mousePressed) == true);
{
size(500, 500);
stroke(0, 0, 0);
fill(244, 224, 163);
ellipse(250, 250, 400, 400);
line(300, 150, 400, 150);
fill(255);
ellipse(150, 150, 100, 100);
fill(239, 219, 160);
ellipse(250, 250, 25, 100);
fill(30, 191, 255);
ellipse(150, 150, 40, 40);
fill(0, 0, 0);
ellipse(150, 150, 15, 15);
fill(0, 0, 0);
stroke(228, 0, 8);
fill(228, 0, 8);
triangle(100, 350, 200, 425, 200, 380);
triangle(400, 350, 300, 425, 300, 380);
rect(200, 380, 100, 45);
}
else
{
size(500, 500);
stroke(0, 0, 0);
fill(244, 224, 163);
ellipse(250, 250, 400, 400);
fill(255);
ellipse(150, 150, 100, 100);
fill(255);
ellipse(350, 150, 100, 100);
fill(239, 219, 160);
ellipse(250, 250, 25, 100);
fill(30, 191, 255);
ellipse(150, 150, 40, 40);
fill(30, 191, 255);
ellipse(350, 150, 40, 40);
fill(0, 0, 0);
ellipse(150, 150, 15, 15);
fill(0, 0, 0);
ellipse(350, 150, 15, 15);
stroke(228, 0, 8);
fill(228, 0, 8);
triangle(100, 350, 200, 425, 200, 380);
triangle(400, 350, 300, 425, 300, 380);
rect(200, 380, 100, 45);
}
1