Quantum Data 801GC, 801GF, 801GX manual Line Yellow 2Ø 5 32Ø 24Ø

Models: 801GC, 801GF, 801GX

1 356
Download 356 pages 47.77 Kb
Page 155
Image 155

The Line primitive draws a line between any two points. The line is one pixel thick. The primitive uses five(5) parameters, the color and the X and Y coordinates for both endpoints. The following ex- ample draws a yellow line between a point 20 pix- els to the right and 5 pixels below the top left corner of active video and a point 320 pixels to the right and 240 pixels below the top left corner of active video:

Line Yellow 2Ø 5 32Ø 24Ø

The Dot primitive draws a single pixel dot. A dot is the smallest graphic element that can be drawn. The primitive uses three (3) parameters, the color and the X and Y coordinates. The following example draws a white dot that is at a point 200 pixels to the right and 300 pixels below the top left corner of active video:

Dot White 2ØØ 3ØØ

The Grid primitive draws a crosshatch of a given color and forming a given number of boxes in each direction. All lines are 1 pixel thick. All of the lines, in a given direction, are equally spaced. Any re- maining pixels are distributed as equally as possible around the perimeter of the grid. This may cause the first and last lines in each direction not to be at the very edges of video. The following example draws a 75% gray level grid that has 14 boxes horizontally and 10 boxes vertically:

Grid Gray75 14 1Ø

The H-Grill primitive draws equally spaced hori- zontal lines that form a grill over the entire active video area. The gap between the lines is equal to the thickness of the lines. The gaps are not touched and will show any previously drawn primitives. The primitive uses two (2) parameters. The first is the color of the lines. The second is the thickness of the lines. The following example draws a green hori- zontal grill whose lines are 4 pixels thick and have

4 pixel gaps between the lines:

H-Grill Green 4

6-29

Page 155
Image 155
Quantum Data 801GC, 801GF, 801GX manual Line Yellow 2Ø 5 32Ø 24Ø