graylib - marinus-lab/z88dk GitHub Wiki
| Header | {z88dk}/include/gray.h |
| -----------------------------------------------------------------------------------------------------------------
| Source | {z88dk}/libsrc/graphics/gray |
| Include | #include <gray.h>
|
| Linking | n/a |
| Compile | n/a |
| Supported | ZX81, TI calculators, Amstrad CPC |
| Comments | n/a |
The gray library is based on advanced IRQ handlers which quickly swap two display memory pages, thus it is subject to many limitations:
* In many cases the screen flickers (expecially on the ZX81)
* Keeping two pictures costs a lot of memory
* It heavily slows down the CPU and makes it work continously, thus disabling the "power saving" tricks and sucking up batteries on the TI calculators
* Accessing to two display pages slows down the applications comparing to the "default" B/W graphics.
G_BLACK | 0 |
---|---|
G_DARK | 1 |
G_GRAY | 2 |
G_LIGHT | 2 |
G_WHITE | 3 |
Select actual gray page for the standard gfx funtions
Plot a pixel on screen
Get pixel status
Draw a line
Relative draw
Draw a box
Draw a circle
Clear map
Recent changes integrate che gray functions in the core library file, so the following files will soon disappear:
cpcgray.lib
tigray82.lib
tigray83.lib
tigray83p.lib
tigray85.lib
tigray86.lib