Boolean in parameters

You’re better off creating a class to represent each of your “shapes”:

  1. From several variables to arrays - Processing 2.x and 3.x Forum
  2. From several arrays to classes - Processing 2.x and 3.x Forum
  3. Objects / Processing.org