Question about Functions, Booleans

This conditional is checking if checkIfInsideAsteroid() is true.

the do something is where your code goes …

if (checkIfInsideAsteroid()) {
  pushStyle();
  fill(255,0,0);
  ellipse(pos.x,pos.y,diameter,diameter);
  popStyle();
}
1 Like