Quantum Data 801GC User Manual

Page 155

Advertising
background image

6-29

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

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:

G r i d G r a y 7 5 1 4 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 - G r i l l G r e e n 4

Advertising
This manual is related to the following products: