我需要使用 PsychoPy 的 RDK 功能来模拟扩展的焦点。
到目前为止,我有以下代码。然而,这只创建了一个向某个方向移动的 RDK。
from psychopy import visual, event, core
win = visual.Window([1000,1000], rgb=(255,255,255), fullscr=False)
fixSpot = visual.GratingStim(win,tex=None, mask="gauss", size=(0.05,0.05),color='black')
rdk = visual.DotStim(win, units='', nDots=1000, coherence=1.0,
fieldPos=(0,0),
fieldSize=(1,1),
fieldShape='sqr', dotSize=6.0,
dotLife=150, dir=0, speed=0.01,
rgb=None, color=(0,0,0),
colorSpace='rgb255', opacity=1.0,
contrast=1.0, depth=0, element=None,
signalDots='different',
noiseDots='direction', name='',
autoLog=True)
stop = False
while stop == False:
fixSpot.draw()
rdk.draw()
win.flip()
if event.getKeys("a"):
win.close()
stop = True
我需要创建一个 RDK,其中的点从窗口中的特定位置移开。
IE
我尝试更改参数,但我无法模仿所需的功能。我还查看并搜索了精神病学文档,但是没有提到“扩展重点”。
有没有办法使用 PsychoPy 做到这一点?如果没有,最好的选择是什么?