HTBasic Help
×
Menu
Index

Array Specified Pen Control

 
When large amounts of data are involved, or if you want to draw the same object at various places on the screen, it is often convenient to use arrays to describe the graphic coordinate values. In the PLOT, IPLOT, RPLOT, and SYMBOL statements you can specify a two or three column array. The first and second columns of the array specify the coordinate values. The optional third-column specifies the operation for each row of the array: pen-control, AREA PEN, AREA INTENSITY, LINE TYPE, PEN, FILL, and EDGE. If a two-column array is specified, the default pen control used on each row is a one, pen down after move.
This table shows the meaning of each column for each of the operations specified by column 3 of the array.
 
Column1
Column2
Column 3
Meaning
X value
Y value
< -2
use even/odd pen control
X
Y
-2
Pen up before moving
X
Y
-1
Pen down before moving
X
Y
0
Pen up after moving
X
Y
1
Pen down after moving
X
Y
2
Pen up after moving
pen number
3
PEN
line type
repeat value
4
LINE TYPE
color
5
AREA INTENSITY
---
6
Start polygon mode w/FILL
---
7
End polygon mode
---
8
End of data for array
---
9
No operation, values ignored
---
10
Start polygon w/EDGE
---
11
Start polygon w/FILL & EDGE
---
12
Draw a FRAME
pen number
13
AREA PEN
red value
green value
14
AREA INTENSITY
blue value
15
AREA INTENSITY
---
>15
No operation, values ignored