mousePressed() function

Thanks for suggesting a counter approach.

If you want to suggest untested code, please mark it “untested!” when you post it. You declare showCirle and then reference showCircle, so it seems clear that this code was never run…

I’d recommend posting actual working short sketches, rather than a series of code fragments that need to be assembled in a particular way in order to work. If you must post code fragments, please break them into separate blocks so that is clear, like

this goes in setup:

// foo

this goes in draw:

// bar
1 Like