Files
GenPlotting90/usage.md
2026-04-23 20:29:13 +02:00

28 lines
717 B
Markdown

# Usage
The genplotting library use, as a backend, an external
[software](https://git.tetalab.org/tTh/libtthimage/src/branch/master/Tools/genplot2.c)
who can be installed with the [libtthimage](https://git.tetalab.org/tTh/libtthimage) and convert scratchfiles to
[Targa](https://en.wikipedia.org/wiki/Truevision_TGA) image file.
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
- call genp_move(x, y)
- call genp_draw(x, y, c)
## Terminator
- call genp_end(0)