Using Draw Files in Basic
by Mike Summerton

Two programs are provided to demonstrate the use of a set of Basic library functions contained in DrawLib. When the application is run, a directory viewer is opened for !RUDraw.Draw. This directory contains the two demonstration programs DrawPaths and ListAll, the DrawLib library, an example drawfile called DrawFile and a palette file. The system variable RUDraw$Dir is set to refer to this directory.

Running DrawPaths draws the file DrawFile on a mode 12 screen, while running ListAll lists the objects contained in the DrawFile. Both programs use the DrawLib library to do most of the work. Note that DrawLib requires the ColourTrans module in order to work, so the !System directory must have been 'seen' before either program is run.

Refer to this month's magazine (RISC User Volume 3 Issue 5 page 7) for details of using the DrawLib library in your own programs.
