How to build a polygon stimuli like "quadrant (A quarter of a circle)"

I’m trying to make a “quadrant (A quarter of a circle)” as a polygon stimuli.

Any information will be helpful.

There’s a bunch of different ways to do this, the easiest way is probably make a circle with 360 corners and only use 90 of them. So you would add a :polygon: Polygon component, set it’s shape to “regular polygon” with 360 sides, then in the Begin Experiment tab of a :code: Code component do:

myPolygon.vertices = np.vstack(myPolygon.vertices[:90], (0,0))
1 Like

Thanks for helping. It works!

myPolygon.vertices = np.vstack((myPolygon.vertices[:90], (0,0)))
1 Like