MakeDraw is a library of Basic routines for the Archimedes which allows DrawFiles to be created directly from Basic programmes. The Draw files can then be displayed and printed using the standard !Draw application.
This approach has several advantages over the traditional method of creating drawings "by hand" using !Draw:
The latest version (2.80) now includes draw object types text areas and sprites.
Click here to download 'MakeDraw'.BBC Basic V includes the facility for accessing libraries of routines (i.e. procedures and functions) from your own programmes - this is described fully in the Archimedes BBC Basic Guide or the older (pre-RiscOS) User Guide. To use the MakeDraw library your programme must include the statement
LIBRARY "[directory.]MakeDraw"and functions by calls to MakeDraw procedures and functions.
The example programmes demonstrate how to use the routines to create vector graphics in !Draw file format creating a graphic made up from precisely positioned "object", "path", "line segment" and "bezier curve" elements which can be rendered by the Draw module, which is part of the operating system (in ROM). The draw module is the thing that actually displays objects on the screen, and has capabilities beyond those used by !Draw. What MakeDraw does is create files in exactly the same format as !Draw creates them when you save a diagram. These files can then be loaded into !Draw in the usual way, and from there the diagrams can be displayed, manipulated, and printed just like any other draw file.
Simple shapes - straight lines, rectangles, circles, and ellipses - can be created by a single procedure call. Other shapes are created by defining the path one segment at a time. If any of the objects in your diagram overlap, the ones defined first will appear behind ones defined later.
A number of example programmes have been included with MakeDraw to show you how easy it is to create quite complicated and precise diagrams.