25
6.5
Drawing
5.1
Set Drawing
Colour
Dec
Hex
ASCII
254 99
FE 63
■
c
Colour
Colour
Colour
Change the drawing colour used for all subsequent drawing commands that do not implicitly specify colour.
Colour
1 byte, 0 for background or 1 to 255 for text colour
5.2
Draw Pixel
Dec
Hex
ASCII
254 112
FE 70
■
p
X Position Y Position
X Position Y Position
X Position Y Position
Draw a single pixel on the graphic display using the current drawing colour.
X Position
1 byte, horizontal position of pixel, value between 0 and 239
Y Position
1 byte, vertical position of pixel, value between 0 and 63
5.3
Draw a
Line
Dec
Hex
ASCII
254 108
FE 6C
■
l
X1 Position Y1 Position X2 Position Y2 Position
X1 Position Y1 Position X2 Position Y2 Position
X1 Position Y1 Position X2 Position Y2 Position
Draw a line connecting two termini. Lines may be rendered differently when drawn right to left versus left to right.
X1 Position
1 byte, horizontal coordinate of first terminus, value between 0 and 239
Y1 Position
1 byte, vertical coordinate of first terminus, value between 0 and 63
X2 Position
1 byte, horizontal coordinate of second terminus, value between 0 and 239
Y2 Position
1 byte, vertical coordinate of second terminus, value between 0 and 63
5.4
Continue a
Line
Dec
Hex
ASCII
254 101
FE 65
■
e
X Position Y Position
X Position Y Position
X Position Y Position
Draw a line from the last point drawn to the coordinate specified using the current drawing colour.
X Position
1 byte, left coordinate of terminus, value between 0 and 239
Y Position
1 byte, top coordinate of terminus, value between 0 and 63
5.5
Draw a
Rectangle
Dec
Hex
ASCII
254 114
FE 72
■
r
Colour X1 Position Y1 Position X2 Position Y2 Position
Colour X1 Position Y1 Position X2 Position Y2 Position
Colour X1 Position Y1 Position X2 Position Y2 Position
Draw a rectangular frame one pixel wide using the colour specified; current drawing colour is ignored.
Colour
1 byte, 0 for background or 1 to 255 for text colour
X1 Position
1 byte, leftmost coordinate, value between 0 and 239
Y1 Position
1 byte, topmost coordinate, value between 0 and 63
X2 Position
1 byte, rightmost coordinate, value between X1 and 239
Y2 Position
1 byte, bottommost coordinate, value between Y1 and 63