
19
6.3
Drawing
3.1
Set Drawing
Colour
Dec
Hex
ASCII
254 99
FE 63
■
c
Colour
Colour
Colour
v5.8
Set the colour to be used for all future drawing commands that do not implicitly specify colour.
Colour
Byte
0 for background or any other value for text colour.
3.2
Draw
Pixel
Dec
Hex
ASCII
254 112
FE 70
■
p
X Y
X Y
X Y
v5.8
Draw a single pixel at the specified coordinate using the current drawing colour.
X
Byte
Horizontal position of pixel to be drawn, zero indexed from left.
Y
Byte
Vertical position of pixel to be drawn, zero indexed from top.
3.3
Draw a
Line
Dec
Hex
ASCII
254 108
FE 6C
■
l
X1 Y1 X2 Y2
X1 Y1 X2 Y2
X1 Y1 X2 Y2
v5.8
Draw a line connecting two termini. Lines may be rendered differently when drawn right to left versus left to right.
X1
Byte
Horizontal coordinate of the first terminus, zero indexed from left.
Y1
Byte
Vertical coordinate of the first terminus, zero indexed from top.
X2
Byte
Horizontal coordinate of second the terminus, zero indexed from left.
Y2
Byte
Vertical coordinate of second the terminus, zero indexed from top.
3.4
Continue a
Line
Dec
Hex
ASCII
254 101
FE 65
■
e
X Y
X Y
X Y
v5.8
Draw a line from the last point drawn to the coordinate specified using the current drawing colour.
X
Byte
Left coordinate of the terminus, zero indexed from left.
Y
Byte
Top coordinate of the terminus, zero indexed from top.
3.5
Draw a
Rectangle
Dec
Hex
ASCII
254 114
FE 72
■
r
Colour X1 Y1 X2 Y2
Colour X1 Y1 X2 Y2
Colour X1 Y1 X2 Y2
v5.8
Draw a rectangular frame one pixel wide using the colour specified; current drawing colour is ignored.
Colour
Byte
0 for background or any other value for text colour.
X1
Byte
Leftmost coordinate of the rectangle, zero indexed from left.
Y1
Byte
Topmost coordinate of the rectangle, zero indexed from top.
X2
Byte
Rightmost coordinate of the rectangle, zero indexed from left.
Y2
Byte
Bottommost coordinate of the rectangle, zero indexed from top.