syntax error- missing operator or semicolon near 100
13:34 05 May 2026

I'm taking a class that uses processing 4. I'm having this recurring issue where when I try to put text onto my current project it keeps giving me a syntax error. if i delete the line the problem is at, it just moves to the next line down. I'll put my code below so anyone who can help can take a look at it. apologies if its messy, i am VERY new to this all

float circleX = 0;
float circleY = 0;
float xSpeed = 2.5;
float ySpeed = 2;

void setup() {
 size(500, 500); 
}

void changeColor() {
  fill(random(255), random(255), random(255));
}

void draw() {
  background(0,200,0);
colorMode(HSB, 360, 100, 100); 

  circleX += xSpeed;
  if (circleX < 0 || circleX > width) {
    xSpeed *= -1;
    changeColor();
  }

  circleY += ySpeed;
  if (circleY < 0 || circleY > height) {
    ySpeed *= -1;
    changeColor();
}

rect(circleX, circleY, 100, 170);
}


fill (100,0,0);
text("1", 0, 40);  
text("2", 0, 70);  
text("3", 0, 100); 

}
syntax syntax-error processing