Dear Forum,
I am using the latest release of the Psychtoolbox for Mac OS X.
For the purpose of my experiment, it is important to have a white rectangle in the lower
left corner during the presentation of the actual stimuli.
The actual stimuli are 'flipped' a lot, and while the rectangle mustn't be affected by those
'Flip' commands, I 'flip' the rectangle as follows:
Screen('Flip', w, [], 1); % where the last 'don't clear' parameter is set to '1'.
to prevent it from being cleared.
But: of course the next normal 'Flip' clears it and this is exactly what it should do to all the
other graphical elements, but not to the rectangle.
Is there any way to spare the rectangle permanently from getting 'flipped' away?
So basically I am looking for a way to make the white rectangle part of the background
(just as the initial
black=BlackIndex(0);
Screen('FillRect',w, black);
Screen('Flip', w);
causes the blackground to be black)
though it should be possible to switch off / hide the white rectangle from time to time.
I would be glad to hear any suggestion!
Thanks,
-Fabian Stelzer
I am using the latest release of the Psychtoolbox for Mac OS X.
For the purpose of my experiment, it is important to have a white rectangle in the lower
left corner during the presentation of the actual stimuli.
The actual stimuli are 'flipped' a lot, and while the rectangle mustn't be affected by those
'Flip' commands, I 'flip' the rectangle as follows:
Screen('Flip', w, [], 1); % where the last 'don't clear' parameter is set to '1'.
to prevent it from being cleared.
But: of course the next normal 'Flip' clears it and this is exactly what it should do to all the
other graphical elements, but not to the rectangle.
Is there any way to spare the rectangle permanently from getting 'flipped' away?
So basically I am looking for a way to make the white rectangle part of the background
(just as the initial
black=BlackIndex(0);
Screen('FillRect',w, black);
Screen('Flip', w);
causes the blackground to be black)
though it should be possible to switch off / hide the white rectangle from time to time.
I would be glad to hear any suggestion!
Thanks,
-Fabian Stelzer