855 B
855 B
Usage
The genplotting library use, as a backend, an external software who can be installed with the libtthimage and convert scratchfiles to Targa image file.
For drawing an useless graphic, you have to follow three steps: initialize, use and terminating.
Initialize
Call the subroutine genp_init with two parameters.
The first is an integer and must be 0.
The second is the filename for recording the plottings instructions,
if this filename is an empty string, stdout will be used.
Use it
- real xa, ya, xb, yb
- integer color
- call genp_move(xa, ya)
- call genp_draw(xa, ya, color)
- call genp_line(xa, ya, xb, yb, color)
Terminator
- call genp_end(0)