Beginner to python and psychopy! I am designing a sort of computer game with player icons of geometric shapes and an oval-shaped table that the players “sit” around. I can find info online about drawing circles, but I’m not sure how to crate one with two vertices so it makes an oval. One source said to change the units to ‘norm’ instead of ‘pix’ so that the circle would stretch to fit the screen size, but that didn’t work for me.
I also need to position the shapes in specific places within the window I created earlier in my code, but can’t figure out how to do that. Here’s my code for these below.
table = visual.Circle(
win=win,
units=‘norm’,
radius=150,
edges=200,
fillColor=[0, 100, 0],
lineColor=[-1, -1, -1])
table.draw()
p1_icon = visual.Rect(
win=win,
units=‘pix’,
width=50,
height=80,
fillColor=[0, 163, 240],
lineColor=[0, 163, 240])
p1_icon.draw()
p2_icon = visual.Polygon(
win=win,
units=‘pix’
edges=3,
radius=5
fillColor=[255, 255, 0],
lineColor=[255, 255, 0])
p2_icon.draw()
p3_icon = visual.Circle(
win=win,
units=‘pix’,
radius=60,
fillColor=[255, 0, 0],
lineColor=[255, 0, 0])
p3_icon.draw()
Thanks for the help!