% draws an expanding rectangle on the screen
% Revision History:
% RobKohr - April 7, 2005 - First draft
%This requires two scripts: ptb_ind_screen_setup.m and ptb_ind_flip.m
%set the screen up. This should be used at the after clear all
shape_rect = window_rect/2;
while( (shape_rect(3)< ...
window_rect(3)) & ...
%expand the size of the shape
shape_rect = shape_rect*1.01;
%draw shape offscreen
Screen(window, 'FillRect', [255, 0, 0], shape_rect);
%flip copys what you have drawn to the screen