
It’s just that the mouse coordinates are odd. So the polygon seems to be rendered as it should. I’ve tried to manually measure the polygon’s width on the screen and that seems OK when comparing the measurement to what the formula 5/360 * 2 * pi * gives. So I am getting coordinate values that are twice as high as what I expect. What specifically went wrong when you tried that?: So I tried to run the experiment and click the vertical center right end, horizontal center bottom, vertical center left end and horizontal center top of the polygon. That means that if I click the vertical center of the right end of the polygon, I expect the mouse coordinate to be roughly. # This stimulus is 0.2 degrees wide and 0.5 degrees tall. Stim = visual.PatchStim(win, units='norm', size=(0.2, 0.5) The Experiment Settings->Screen ‘Units’ option is set to ‘deg’.Īs I understand the documentation for ShapeStim, the width specified should correspond to the distance from the left end to the right end of the object, as the documentation describes this example: # This stimulus is 20% wide and 50% tall with respect to window

In the experiment, there is a Polygon/Rectangle Component with width 5 and height 6 (size set to ‘(5, 6)’ ), and a Mouse Component that is set to save mouse state on every click. (note that if you try this out locally yourself, you need to change ‘Experiment Settings->Screen->Monitor’ from ‘myMacMonitor’ to a monitor specification that works with your setup)

I made a simple project to test coordinate registering out, and later simplified it even more to create a minimally reproducible example, available here:

The shape sizes are to be specified using degrees, and so I want to fetch the mouse’s coordinates in deg units as well, to simplify comparison of perimeter/mouse positions. I want to register where mouse clicks are made, to see if they fall within a certain distance from a shape’s perimeter.
