I wrote this code, but Processing keeps telling me about the “expecting }, found ‘else’” error. I checked my code many times, but I just stick at missing out the mistake. Please help out, if you spot it.
void draw()
{
stroke(255, 255, 255);
strokeWeight(2);
point(random(width), random (height));
noStroke();
if ((frameCount % 50) < 25);
{
fill(255, 255, 0);
}
else
{
fill(215, 215, 0);
}
triangle(width/2, 0,
width/2 - 30, 60,
width/2 + 30, 60);
triangle(width/2 - 30, 20,
width/2 + 30, 20,
width/2, 80);
noStroke();
fill(255, 255, 255);
rect(0, 0.9 * height, width, 0.1 * height);
}