graphic
Deprecated
use blit.
The graphic library is a wrapper around paintutils.
| drawFilledBox(x, y, x2, y2, colour, output) | drawFilledBox draws a filled in box at the specified coordinates |
|---|---|
| drawBox(x, y, x2, y2, colour, output) | drawBox draws a hollow box at the specified coordinates |
| drawPixel(x, y, colour, output) | drawPixel draws a single pixel at the specified coordinates |
| drawText(x, y, fg, bg, text, output) | drawText draws a textline with set colours |
| drawLine(x1, y2, x2, y2, colour, output) | drawLine draws a line between the two coordinates |
- drawFilledBox(x, y, x2, y2, colour, output)Source
drawFilledBox draws a filled in box at the specified coordinates
Parameters
- x
numbertopleft x coordinate of the box - y
numbertopleft y coordinate of the box - x2
numberbottomright x coordinate of the box - y2
numberbottomright y coordinate of the box - colour
numbercolour of the box - output
tableoutput terminal of the box
- x
- drawBox(x, y, x2, y2, colour, output)Source
drawBox draws a hollow box at the specified coordinates
Parameters
- x
numbertopleft x coordinate of the box - y
numbertopleft y coordinate of the box - x2
numberbottomright x coordinate of the box - y2
numberbottomright y coordinate of the box - colour
numbercolour of the box - output
tableoutput terminal of the box
- x
- drawPixel(x, y, colour, output)Source
drawPixel draws a single pixel at the specified coordinates
Parameters
- x
numberx coordinate of the pixel - y
numbery coordinate of the pixel - colour
numbercolour of the pixel - output
tableoutput terminal of the pixel
- x
- drawText(x, y, fg, bg, text, output)Source
drawText draws a textline with set colours
Parameters
- drawLine(x1, y2, x2, y2, colour, output)Source
drawLine draws a line between the two coordinates
Parameters
- x1
numberx coordinate of one end - y2
numbery coordinate of one end - x2
numberx coordinate of the other end - y2
numbery coordinate of the other end - colour
numbercolour of the line - output
tableoutput terminal of the line
- x1