Help with spinning stimuli

I have this code from
trialClock = core.Clock()
t = lastFPSupdate = 0
while True:
t = trialClock.getTime()
faceRGB.setOri(1, ‘+’)#advance ori by 1 degree

My question is how can I make the image turn 360 degrees only twice?
or perhaps to calculate in which degree it’s positioned after 3 seconds?

Thank you very much!

HI @galaharon, the easiest way to do this is using Builder with your image and a code component. Set your image, and use the code component to rotate the image, and record the orientation after 3 seconds. See example attached

grating.psyexp (7.9 KB)

1 Like