so I have this mouse(click,state,x,y) function that generates coordinates for each click, and I want to pass some clicks to another function that for example draws a polygon using those coordinates. how do I do this ? create new points in the mouse function, or is there some other way to pass along these click coordinates ?



