title: Looking for a reasonable way to have several shapes as usable buttons in processing
body: <p>I recently (5 weeks ago) started my first school year in an school based apprenticeship to become an IT assistant.</p>
  <p>We're learning programming and are starting with very basic processing things, while the ultimate plan is to get into C#.</p>
  <p>Now I understand that processing might not be the best language for my little project but I still would like to work this out somehow.</p>
  <p>What I want to build is a &quot;Stargate Dial Computer&quot;. If you know the TV Show you'll know what I'm talking about.</p>
  <p>I wanted to make it visually appealing so I decided to use one of the available tools to create my shapes as I am using a DHD (term from the show) for the dial process - see picture: <a href="https://i.imgur.com/r7jBjRG.png" rel="nofollow noreferrer">https://i.imgur.com/r7jBjRG.png</a></p>
  <p>This small shape setup already is over 500 lines of code and that seems unwise in itself. Besides that, the plan is to have every single of these trapezoids be a pushable button - but to achieve that manually I'd have to check their coordinates against the mouse collision to utilize them as buttons.</p>
  <p>What I'm asking for now is any input on how to work with these shapes in a logical way to make my Idea even possible.</p>
  <p>Something like, checking for the shape's color instead of the shape's coordinates itself like 40 times and getting the &quot;active&quot; shape's size in some kind of function. Or a way to just get every shape one by one in a loop, checking for every beginShape and endShape instance if that wouldn't be a performance nightmare.</p>
  <p>Keep in mind that I am a beginner. I do know the basics, also of other languages, and I can apply some programming logic here and there - but since I'm not sure what processing can and can't do (yet) I'm looking for an answer to the question if this is even reasonable or possible, or not.</p>
  <p>Any help and ideas would be much appreciated!</p>
  <p>Thanks!</p>