Quantum Data 801GC, 801GF, 801GX Portable Generator User Manual


 
6-158 Chapter 6: Programming
Model 801GC, 801GF & 801GX¥Rev. A
RECT draw a RECTangle
Classification: Custom image primitive
Command Syntax: RECT <color> <width> <height> <x> <y> <fill pattern>
Limits: <color> = available colors
<width> = total number of horizontal pixels
<height> = total number of lines
<x> = positive integer number
<y> = positive integer number
<fill pattern> = available fill paterns
Query Syntax: None
Description: Draws a rectangle whose sides are parallel to the vertical and
horizontal axes of displayed video. It uses six (6) 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-
hand corner of the rectangle. The last parameter is the fill.
Other Required Cmds: The FMTU command instructs the generator to use the new
setting. The ALLU 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
SCAL Self CALibrate
Classification: Direct processor control
Command Syntax: SCAL
Query Syntax: None
Description: The SCAL command causes generator equipped with self-
calibration circuitry to go through its self-calibration cycle.
Other Required Cmds: None
Example: SCAL // Have generator go through self
// cal