• Aucun résultat trouvé

Drawing Commands

Dans le document the Display (Page 100-103)

Line

<036> <114> <loc list> <null>

IE 4C <loc list> <null>

<036> L <loc list> <null>

or

<036> <107> <070> <loc list> <null>

IE 47 38 <loc list> <null>

<036> G 8 <loc list> <null>

where

<loc_list> = <location> or <location> <loc_list>.

In either case, <location> = <NNN> <NNN>

where

(octal) (hex) (ASCII)

(octal) (hex) (ASCII)

the first <NNN> quantity sets the X-<lrdinate of the location.

the second <NNN> quantity sets the Y-<lrdinate of the location.

For more information on location arguments and <NNN> quantities, see the

"Forming Location Arguments" section in this chapter.

<null> is the ASCII NULL character (000 octal, 00 hex, or Ctrl-Shift-2).

D463

Draws lines from point to point within the active window. If a single point is supplied in a line command, only that point is plotted. However, if multiple points are supplied, lines are drawn between the points in the order supplied. You can draw patterned lines by using the Set Pattern command before the Line command. If you enter an invalid parameter this command aborts.

2-74 014-002111

Arc

<036> <107> <060> <NNN> <NNN> <NNN> <NNN> <NNN>

1E 47 30 <NNN> <NNN> <NNN> <NNN> <NNN>

<036> G 0 <NNN> <NNN> <NNN> <NNN> <NNN>

where

the first <NNN> sets the x-ordinate the second <NNN> sets the y-ordinate the third <NNN> defines the radius the fourth <NNN> sets the starting angle the fifth <NNN> sets the ending angle.

(octal) (hex) (ASCII)

The <NNN> quantities are 15-bit location arguments (see the "Forming Location Arguments" section in this chapter).

D463

Draws an arc within the current window with a given radius and start/end angles. The given angles are degrees. "Zero degrees" on the arc has the same x-ordinate as the center. The

y-ordinate is equal to the y-ordinate of the center plus the radius. Thus "zero degrees" on the arc is directly above the center.

Bar

<036> <107> <061> <NNN> <NNN> <NNN> <NNN> <n>

1E 47 31 <NNN> <NNN> <NNN> <NNN> <n>

the first <NNN> sets the x-ordinate of the lower left corner of the bar the second <NNN> sets the y-ordinate of the lower left corner of the bar the third <NNN> sets the size of the bar in the x-direction

the fourth <NNN> quantity defines the size of the bar in the y-direction

<n> sets the bar color:

o

makes the bar the same color as the background (Off Bar) 1 makes the bar the foreground color (On Bar)

The <NNN> quantities are 15-bit location arguments (see the "Forming Location Arguments" section in this chapter).

D463

Draws a solid bar within the current window. Any characters that are completely filled in by this command are replaced with either a <space> or a reverse-video <space>, whichever is

appropriate. An invalid parameter aborts this command

Polygon Fill

<036> <107> <064> <loc> <null>

1E 47 3A <loc> <null>

<loc> = <NNN> <NNN> ... <NNN> <NNN>. Each pair of values defines a vertex. This command supports frOiD. 3 through 255 vertices.

where

the first <NNN> defines the x-ordinate of a vertex.

the second <NNN> defines the y-ordinate of a vertex.

The <NNN> quantities are 15-bit location arguments (see the "Forming Location Arguments" section in this chapter).

<null> is the ASCII NULL character (00 hex, 000 octal, or Ctrl-Shift-2)

Draws a filled polygon within the current window. A filled polygon is defined by the vertices in the argument list. The polygon is automatically closed with a straight line between the first and last vertices. This polygon command does not support intersecting polygons. If filled polygons are defined so that they intersect other filled polygons, the polygons mayor may not be filled

correctly.

Set Pattern

<036> <107> <160> <061> <offset> <pattern_definition> <null>

1E 47 70 31 <offset> <pattern_definition> <null>

<036> G p 1 <offset> <pattern_definition> <null>

where

D463 (octal) (hex) (ASCII)

<offset> specifies where in the pattern to begin drawing the dots, in the range of decimal values from 0 to 31. The value is formed from the 5 least significant bits (LSBs) of a single ASCII character.

<pattern_definition> = <pattern_character> or <pattern character> <pattern_definition>.

If no pattern definition is specified, the terminal defaults to white lines. Otherwise,

<pattern_character>, which is an <n> value, is 0 for off, and is 1 for on. Any other value results in transparent.

<null> is the ASCII NULL character (00 hex, 000 octal, or Ctrl-Shift-2) Defines the line style used in generating lines. The terminal default is a solid line.

2-76 014-002111

Dans le document the Display (Page 100-103)

Documents relatifs