Memorandums

知覚・認知心理学の研究と教育をめぐる凡庸な日々の覚書

PTB-3: OS9 からの変更点 OpenWindow

2007-11-12 | PsychToolBox
MovieDemo から

'Openwindow'関連部分
L.119-127
% If there are multiple displays guess that one without the menu bar is the
% best choice. Dislay 0 has the menu bar.
screens=Screen('Screens');
screenNumber=max(screens);
以下、注意。
% Open a window. Note the new argument to OpenWindow with value 2,
% specifying the number of buffers to the onscreen window.
[window,windowRect]=Screen(screenNumber,'OpenWindow',0,[],[],2);


% Give the display a moment to recover from the change of display mode when
% opening a window. It takes some monitors and LCD scan converters a few seconds to resync.
WaitSecs(2);


cf.
OS9

Screen('Preference', 'VisualDebuglevel', 3);
pixelSize = 32; % You might change to 32 if 8 is not working, depending on OS9 or Windows.
[w, screenRect] = Screen(0,'OpenWindow',[],[],pixelSize); % Define your output screen as your monitor which is screen 0.
コメント
  • X
  • Facebookでシェアする
  • はてなブックマークに追加する
  • LINEでシェアする