0

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

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
4

1 回答 1

0

刚刚添加 '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
于 2014-03-29T19:18:30.323 回答