The viewport graphics library is a relatively simple toolbox of graphics commands. The library is not very powerful; it is intended as a simplified alternative to MrEd's full graphical toolbox.
The graphics library originated as SIXlib, a library of X Windows commands available within Chez Scheme at Rice University. The functionality of that library has been reproduced (with backward compatibility) in this version.
To use the viewport graphics library, load it via require-library:
(require-library "graphics.ss" "graphics")
To use a unitized version of the graphics library
(see units for more information on units),
load the signatures with:
(require-library "graphicss.ss" "graphics")The result of this expression:
(require-library "graphicr.ss" "graphics")is a unit that imports mzlib:file^ and mred^. See mzlib's libraries and collections for more information about units matching mzlib:file^ and the mred manual) for information on mred^.
Also, this expression:
(require-library "graphicspr.ss" "graphics")