DrawRectFrame(windowPtr, rect, [color])
Draw a rectangle frame (not filled in) specified by the rect coords.
windowPtr is the window pointer returned from
Screen (
PsychToolbox)
rect is a 1x4 vector - [x0 y0 x1 y1]
color is a 1x3 color vector - [r g b] with color range from 0:255
if color is not specified, rect is drawn in white
The idea for this came from the
Screen('
FrameRect') function. However,
Screen would only draw from top-left to bottom-right. This didn't work
well on the Haploscope when your view is mirrored.
Draw our own using the
Screen('
DrawLine') functions.
REQUIRES:
PsychToolbox version 3.x
Updated: 2007-05-14 - Updated for Psychtoolbox 3.x, using
OpenGL.
Created: Feb 2006 - cburns - Bankslab, UC Berkeley
Psychtoolbox/PsychGLImageProcessing/private/DrawRectFrame.m