This is taken from Re:Port newsletter Vol. 1, Issue 5, copyright
1992 Re:Port and David E. Stewart.  Reprinted by permission.

PUTLCD(command,option : byte)
This command is used to write a byte directly to the LCD
controller.  See the last issue for more information on this
procedure.  Actually, you will not use this command very often,
because the other commands are more useful for screen drawing, as
you will see.

GRAPHMODE
Call this command to set the Port into graphics mode.  This also
clears all graphics memory.  Call this before the procedures that
create graphics.

TEXTMODE
Call this command to return the Portfolio to text mode.  This
will also clear the screen.

PLOT(x,y,color : integer)
This is perhaps the most important procedure in the unit.  Feed
this the x and y coordinates of a point you want to plot (x
ranges from 0 to 239; y ranges from 0 to 63; the top left corner
is 0,0) and the color of the point, which is either 0 (white) or
1 (black).

CIRCLE(cx,cy,radius,color : integer)
This procedure will draw a circle, given the center coordinates,
the radius, and the color.  If part of the circle extends beyond
the screen area, it will not be displayed.

DRAW(x1,y1,x2,y2,color : integer)
This procedure draws a line between the first x,y coordinates and
the second x,y pair in the selected color.

LINE(x1,y1,x2,y2,color : integer)
Line simply calls the DRAW function, for people who can remember
LINE more easily.  (DRAW is called DRAW so that programs can be
compatible with Turbo Pascal version 3.0 graphics code.  Programs
written with TP3.0 will run on the Portfolio).

BOX(topx,topy,botx,boty,color : integer);
This procedure draws a box, when fed the opposing corners of the
box (and its color).

ANGLE(degree : real; cx,cy,radius,color : integer)
Give this procedure an angle, and it draws a line of length
RADIUS from the specified x,y coordinates at the given angle,
where 0 degrees is vertical and 270 degrees is to the left.

SAVEPGC(filename : string)
This procedure saves graphics memory into a .PGC file with the
given filename.  Compressing graphics memory into a .PGC file is
one of the more daunting tricks of Portfolio programming; with
this command, you dont have to worry about re-inventing the
wheel!

LOADPGC(filename : string; keyed : integer)
This procedure will load the given file.  Be sure that it is a
valid .PGC file, first.  The KEYED variable is either 0 (dont
wait for a keypress afterward) or 1 (halt the progress of the
program until a key is pressed).

You're free to use any and all of these commands to write your
own Portfolio graphics programs.  If you come up with something
good, please send it to us via Email to 73770,2021 on CompuServe
or to DAVESTEWART on GEnie, or to Re:Port programs, 1618 S. Beech
Ct., Broken Arrow, OK  74012-6205.
