Creating Graphics

Drawing Graphics Items

The TP (tablet pointer) command modi￿es item shapes. The TP command may be thought of as a tablet pointer that selects one of the X-Y coordinates of a graphics item for modi￿cation. For example, consider item 2, the triangle, which is de￿ned by four coordinates, numbered 0 through 3:

Point 0

Point 1

Point 2

P oint 3

(600,0)

(700,200)

(800,0)

(600,0)

Executing TP 1 selects (700,200) for modi￿cation. (TP begins counting with zero.) The new coordinate is speci￿ed with the plot absolute command, PA, that follows the TP command. In the program below, point 1 of the triangle is modi￿ed.

160

OUTPUT

723;"IT

2;"

Activate item.

170

OUTPUT

723;"TP

1;"

Select point.

180

OUTPUT

723;"PA

300,600;"

Specify new point value.

Modify Shape of Item

Any modi￿cation made with OR, VW, or TP become permanent characteristics of the item unless the item is remodi￿ed or deleted with the DELETE or CLRDSP command.

5-14