Hi,
I would like to present 6 stimuli on 6 different locations on the imaginary circle array surrounding the fixation on the 800 x 600 display.
I am looking for a PTB code, which can divide this imaginary circle array by 6 (so each angular degree should be 60).
If I were using the E-Basic script for E-prime, I could do something like below:
To present 6 stimuli on an imaginary circle, set up an angular degree variable as q = 60
For counter = 1 to 6,
Xchange(counter) = (MemoryRadius* (sin((q)*(3.14)/180)))
Ychange(counter) = (MemoryRadius * (cos((q)*(3.14)/180)))
XPos(counter) = int(400 + Xchange(counter))
Ypos(counter) = int(300 - Ychange(counter))
q=q+60
Next counter
Is there any similar code for PTB?
Alternatively, is there any easy way to calculate xy coordinates for each of these locations once the retina eccentricity is set?
Thank you so much for your help.
I would like to present 6 stimuli on 6 different locations on the imaginary circle array surrounding the fixation on the 800 x 600 display.
I am looking for a PTB code, which can divide this imaginary circle array by 6 (so each angular degree should be 60).
If I were using the E-Basic script for E-prime, I could do something like below:
To present 6 stimuli on an imaginary circle, set up an angular degree variable as q = 60
For counter = 1 to 6,
Xchange(counter) = (MemoryRadius* (sin((q)*(3.14)/180)))
Ychange(counter) = (MemoryRadius * (cos((q)*(3.14)/180)))
XPos(counter) = int(400 + Xchange(counter))
Ypos(counter) = int(300 - Ychange(counter))
q=q+60
Next counter
Is there any similar code for PTB?
Alternatively, is there any easy way to calculate xy coordinates for each of these locations once the retina eccentricity is set?
Thank you so much for your help.