Module Drawing
#include <macaw.h>
Functions
- cls
- Fills the whole window, or the picture you're drawing into, with one colour.
- pset
- Sets one pixel to a colour.
- pget
- Reads the colour of one pixel of the window, or of the picture you're drawing into.
- line
- Draws a straight line from one point to another.
- rect
- Draws the outline of a rectangle, one pixel thick.
- rectfill
- Fills a rectangle with one colour.
- circ
- Draws the outline of a circle.
- circfill
- Draws a filled circle.
- tri
- Draws a filled triangle between three corners.
- text
- Writes text in the built-in font.
- textwidth
- Measures how wide some text would be, so you can line it up before you write it.
- clip
- Limits drawing to a rectangle, so nothing is drawn outside it.
- noclip
- Lets you draw anywhere in the window, or the picture you're drawing into, again after
clip. - camera
- Moves everything drawn after it by
-x, -y. - box
- Draws a filled rectangle with an outline in another colour.
- centertext
- Writes text centred on a point across, for titles and buttons.
- shadowtext
- Writes text with a shadow one pixel down and to the right, so it stands out on a busy background.
- textscaled
- Writes text with every pixel of the font made bigger.
- wraptext
- Breaks text into lines short enough to fit, breaking at spaces where it can.
- wrapline
- Gives you one of the lines the last
wraptext made.