Rect, Red 200, Rect draw a rectangle – Quantum Data 802BT User Manual
Page 507

Video Test Generator User Guide
497
RECT
draw a RECTangle
Class
Custom image primitive
Description
Draws a rectangle whose sides are parallel to the vertical and horizontal axes of displayed
video. It uses six parameters. The first is the color of the line. The next two parameters are
the pixel width and height of the rectangle. The fourth and fifth parameters are the x and y
coordinates for the top left corner of the rectangle. The last parameter is the fill.
Command syntax
RECT color width height x y fill
color
available colors
width
total number of horizontal pixels
height
total number of lines
x, y
positive integer numbers
fill
available fill patterns
Other required
commands
The
command instructs the generator to use the new setting. The
command
updates hardware to the new setting and redraws the test image.
Example
RECT gray50 15 20 50 40 GrayPat50
// Draw a 50% gray rectangle 15 pixels wide and 20 pixels high
// with top left corner at X=50, Y=40 Fill with 50% active pixels
ALLU // Update hardware to current buffer contents