Chapter 2 Graphics Tutorial
2-20
Line Ends
The line end type determines how PRESCRIBE renders the ends of lines when they are
stroked onto the page. PRESCRIBE provides three kinds of line ends. These include:
Figure 2. 16. Line Ends
The default line end type is butt caps. You can switch from the current line end type to
any of the other types with the SCAP command. This command uses the following for-
mat:
SCAP line-cap mode;
Value s f or line-cap mode include:
1 (for square caps)
2 (for butt caps)
3 (for round caps)
Use of this command is illustrated in the following example.
!R! RES;
UNIT C; CMNT Sets unit to cm;
NEWP; CMNT Starts new path;
SPD .5; CMNT Sets line width to .5 cm;
SCAP 1; CMNT Sets square caps;
PMZP 2, 2;
PDZP 4, 4;
SCAP 3; CMNT Sets round caps;
STRK;
PAGE;
EXIT;
Figure 2. 17. Printout of SCAP Example
Note that the line is rendered with round caps, rather than with square ones. Although
square caps is set before constructing the path, the line type is changed to round prior to