I’m trying to work on an idea I had about having students guess the location of a missing vertex of a regular polygon. My goal is to have them estimate where the point is and then have the screen disable and show how close they were (I can code that part)
My request is involved with how to capture the coordinates of the point once the point is plotted. I have already put in the currentX and currentY, I just need to know how to capture the history of the point once the strokecount=1.
If you want a history of coordinates, you’ll need an action button to use captures. On button press, capture(" ") collects a numeric value and stores it in a numberList. Similar to some of @Guzman_Tierno’s, here is how to use captures and some related sources.
Here’s a different way using a graph with actions instead. You can hide the green points by adding a point into the list and resetting after editing your display parameters.
Side note: currentX and currentY can pose some accessibility issues for touchscreens and keyboard navigation, so use it sparingly if possible.