改变Psychtoolbox注视点的背景颜色

时间:2014-03-29 18:51:08

标签: matlab screen psychtoolbox

我在Yahoo help forum上发布了一些代码,并想知道如何修改它以在注视点上有灰色背景。道歉我对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

1 个答案:

答案 0 :(得分:0)

刚刚添加了'屏幕(' FillRect',窗口,[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