home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 1
/
GoldFishApril1994_CD1.img
/
d1xx
/
d165
/
plotview
/
plot
/
plot.doc
< prev
next >
Wrap
Text File
|
1988-11-22
|
1KB
|
38 lines
Plot is a device independent plotting package for the Amiga. It is
compatable with the UNIX plot subroutine package. It provides a set
of subroutines that create device independent plotting data. This data
must be processed by an output filter that transforms it into device
specific data. A different filter is needed for each device that is to
draw the graphics. The subroutines write their data to stdout. Following
are the calls provided by Plot:
move(x,y): Move the pen to x,y.
cont(x,y): Draw from the current pen position to x,y.
point(x,y): Draw one pixel at x,y. Pen is left at x,y.
line(xs,ys,xe,ye): Draw a line from xs,ys to xe,ye. Pen is left at xe,ye.
arc(xc,yc,xs,ys,xe,ye): Draw an arc from xs,ys to xe,ye, with center
at xc,yc.
label(string): Draw the text at the current pen position.
circle(xc,yc,r): Draw a circle with its center at xc,yc and raduis r.
linemode(mode): Set the mode for all subsequent lines. Mode is a string
equal to one of the following: dotted, solid, longdashed,
shortdashed, dotdashed.
space(xl,yl,xh,yh): Sets the graphic space to the rectangle described by
xl,yl and xh,yh.
erase(): Clears the drawing area and sets the linemode to solid.
The following 2 subroutines have no functions, and are provided for
compatibility only:
openpl()
closepl()