Modula-2 || Compiler & Tools || Library || Search Engine


Ulm's Modula-2 Library:
Plot


NAME

Plot, OpenPlot, ClosePlot, Move, Cont, Point, Line, String, Arc, Circle, Erase, LineMod, Space, Reverse, Polygon, CharMod - graphics interface

SYNOPSIS

FROM StdIO IMPORT FILE;

PROCEDURE OpenPlot(f: FILE);

PROCEDURE ClosePlot;

PROCEDURE Move(xto, yto: INTEGER);

PROCEDURE Cont(xto, yto: INTEGER);

PROCEDURE Point(xpoint, ypoint: INTEGER);

PROCEDURE Line(xfrom, yfrom, xto, yto: INTEGER);

PROCEDURE String(str: ARRAY OF CHAR);

PROCEDURE Arc(xcenter, ycenter, xstart, ystart,
              xend, yend: INTEGER);

PROCEDURE Circle(xcenter, ycenter, radius: INTEGER);

PROCEDURE Erase;

PROCEDURE LineMod(style: ARRAY OF CHAR);

PROCEDURE Space(xupleft, yupleft,
                xlowright, ylowright: INTEGER);

PROCEDURE Reverse(xupleft, yupleft,
                  xlowright, ylowright: INTEGER);

PROCEDURE Polygon(xcenter, ycenter,
                  xstart, ystart, edges: INTEGER);

PROCEDURE CharMod(plotchar: CHAR);

DESCRIPTION

These subroutines generate graphic output in a relatively device-independent manner. See plot(5) for a description of their effect. OpenPlot must be used before any of the others to open the device for writing. ClosePlot flushes the output.

DIAGNOSTICS

Plot prints `Plot: value out of bounds' and aborts if BS(arg) is greater than 77777B for a given parameter arg.

SEE ALSO

plot(5), plot(1)
Edited by: martin, last change: 1996/12/04, revision: 1.1, converted to HTML: 1996/12/11

Modula-2 || Compiler & Tools || Library || Search Engine