How would I create an interactive component similar to the Locator functionality provided in Mathematica? For example, the command in Mathematica
Manipulate[
Graphics[Polygon[pt], PlotRange -> 2],
{{pt, {{0, 0}, {1, 0}, {1, 1}, {0, 1}, {1, -1}}}, Locator}
]
creates five Locator objects stored in the variable pt. This example can be found in the