| Header | {z88dk}/include/graphics.h |
|---|---|
| Source | {z88dk}/libsrc/graphics |
| Include | #include <graphics.h> |
| Linking | n/a |
| Compile | n/a |
| Comments | These library functions implement various monochrome graphics functions thought to be easily portable. |
These APIs (along with the monochrome sprites ones) have been developed for many platforms with the intentions to make possible the portability of simple graphical applications. For that reason no color extensions are implemented. The developer wishing to create portable applications has to keep in mind the differences between the various screen resolutions.
The most common ones are:
256×192
256×64
128×64
96×64 and 80×72 (those could converge on a minimal 78×64 and cover as much platform as possible).
Plot a pixel to screen
Reset a pixel on the screen
Invert a pixel on the screen
Invert a pixel on the screen
Get the status of a pixel (this function might not work correctly on all the platforms)
Draw a line, given absolute coordinates
Draw a white line (clear a line), given absolute coordinates
Draw a line, starting from the last plotted pixel to the given position
Draw a white line starting from the last plotted pixel to the given position
Draw a box border
Draw a white box border
Invert the given box border. Useful for “select area” functions.
Draw a circle.
Draw a white circle.
Clear the screen and (if necessary for the platform) enter in graphics mode.
Clear the given screen area.
Fill an area starting at the given point. (this function might not work correctly on all the platforms)