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


 
6-149
LINE draw a LINE
Classification: Custom image primitive
Command Syntax: LINE <color> <X start coordinate> <Y start coordinate> <X
end coordinate> <Y end coordinate>
Limits: <color> = available colors
<X start coordinate> <Y start coordinate> <X end
coordinate> <Y end coordinate> = positive integer number
Query Syntax: None
Description: Draws a line between any two points. The line is one (1) pixel
thick. The primitive uses five (5) parameters, the color and the
X and Y coordinates for both endpoints.
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: LINE yellow 20 5 320 240 // Draw yellow
// line from X=20, Y=5 to X=320,
// Y=240
ALLU // Update hardware to current
// buffer contents