when you generate a 32-bit window using
screen('OpenWindow'') you can
set the initial RGB value. in the pc (not the mac) version of PTB
the RGB triplet seems to get inverted. consequently, the
following code produces
a blue square on a red background when it should
make a blank blue screen.
[win,scrRct] = Screen(0,'OpenWindow',[0 0
255],[],32);
SCREEN(win,'FillRect',[0 0 255],CenterRect([0 0 100 100],scrRct));
pause(5)
Screen(win,'Close');
SCREEN(win,'FillRect',[0 0 255],CenterRect([0 0 100 100],scrRct));
pause(5)
Screen(win,'Close');
all the best
steven dakin
----------
Steven Dakin
Institute of Ophthalmology
11-43 Bath Street
London EC1V 9EL
Steven Dakin
Institute of Ophthalmology
11-43 Bath Street
London EC1V 9EL
Lab: +44 20 7608 6988
Office: +44 20 7608 6924
Fax: +44 20 7608 6850
Web: http://www.homepages.ucl.ac.uk/~smgxscd
Office: +44 20 7608 6924
Fax: +44 20 7608 6850
Web: http://www.homepages.ucl.ac.uk/~smgxscd