26
5.6
Draw a Solid
Rectangle
Dec
Hex
ASCII
254 120
FE 78
■
x
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 filled rectangle using the colour specified; current drawing colour is ignored.
Colour
1 byte, 0 for background or 1to 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 0 and 239
Y2 Position
1 byte, bottommost coordinate, value between 0 and 63
5.7
Initialize a
Bar Graph
Dec
Hex
ASCII
254 103
FE 67
■
g
ID Type X1 Position Y1 Position X2 Position Y2 Position
ID Type X1 Position Y1 Position X2 Position Y2 Position
ID Type X1 Position Y1 Position X2 Position Y2 Position
Initialize a bar graph in memory for later implementation. Graphs can be located anywhere on the screen, but
overlapping may cause distortion. Graph should be filled using the Draw Bar Graph command below.
ID
1 byte, unique bar identification number, between 0 and 15
Type
1 byte, graph style, see Table 27
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 0 and 239
Y2 Position
1 byte, bottommost coordinate, value between 0 and 63
Table 27: Bar Graph Types
Type
Direction
Base
0
Vertical
Bottom
1
Horizontal
Left
2
Vertical
Top
3
Horizontal
Right
5.8
Draw a Bar
Graph
Dec
Hex
ASCII
254 105
FE 69
■
i
ID Value
ID Value
ID Value
Fill in a portion of a bar graph after initialization. Any old value will be overwritten by the new. Setting a value of
zero before setting a new value will restore a graph should it become corrupted.
ID
1 byte, unique bar identification number, between 0 and 15
Value
1 byte, portion of graph to fill in pixels, will not exceed display bounds