改变心理工具箱固定点的背景颜色



我在雅虎帮助论坛上发布了一些代码,想知道如何修改它,使其在注视点上具有灰色背景。抱歉,我对心理工具箱完全陌生。

screenNum=0;
[window, rect] = Screen('OpenWindow', screenNum, 1);
[X,Y] = RectCenter(rect);
FixCross = [X-1,Y-40,X+1,Y+40;X-40,Y-1,X+40,Y+1];
Screen('FillRect', window, [255,255,255], FixCross');
Screen('Flip', window);
WaitSecs(2)
sca

只要添加'Screen('FillRect', window,[192,192,192]]'就可以了

screenNum=0;
[window, rect] = Screen('OpenWindow', screenNum, 1);
[X,Y] = RectCenter(rect);
FixCross = [X-1,Y-40,X+1,Y+40;X-40,Y-1,X+40,Y+1];
Screen('FillRect', window, [192,192,192])
Screen('FillRect', window, [255,255,255], FixCross');
Screen('Flip', window);
WaitSecs(2)
sca

相关内容

  • 没有找到相关文章

最新更新