home *** CD-ROM | disk | FTP | other *** search
- .pg wi full clr
- COMMAND NAME: DrawLine
-
- /DRAW,{V|H},{{Row}|{Col}},{Start},{End}[,{Speed}[,{Character}]]
- /cw
- Draw a vertical or horizontal line on the screen using
- »cy«{Character}»#«.
-
- »cy«{V|H}»#« »ye«V»#« = vertical line, »ye«H»#« = Horizontal line.
- »cy«{{Row}|{Col}}»#« The »ye«Row»#« (horizontal line) or »ye«Column»#«
- (vertical line) at which the line will
- be drawn.
- »cy«{Start}»#« The starting column or row for the line.
- »cy«{End}»#« The ending row or column for the line.
- »cy«{Speed}»#« The speed at which the line will be
- drawn. A higher number represents a
- slower speed.
- »cy«{Character}»#« The character with which the line will
- be drawn.
- .pg clr
- All »ye«rows»#«/»ye«columns»#« are checked for validity.
-
- If the speed is not specified or is zero then the line will
- be drawn at »wh«full speed»#«.
-
- If no character is specified, then a vertical bar (»cy«ASCII
- 179»#« "»ye«│»#«") will be used for vertical lines and a horizontal
- bar (»cy«ASCII 196»#« "»ye«─»#«") will be used for horizontal lines.
-
- Variables appearing in all tokens are expanded.
-
- If »cy«{end}»#« is greater than »cy«{start}»#« then the line will be drawn
- from »wh«right to left»#« (horizontal) or »wh«bottom to top»#« (vertical).
- .pg clr
- Here are some »%t«/DRAW»#« commands and their resulting lines:
- .reset ye
- |/DRAW H 5 10 50
- .re
- |/DRAW V 40 3 10
- .cy
- |/DRAW H 10 75 3 50 *
- .ma
- |/DRAW V 50 11 4 75 +
- /ENDEXEC CLEAR
-