5 graphics commands, N 8.5, Table 8-2) – Matrix Orbital GLK24064-25 Legacy User Manual
Page 31

GLK24064-25 rev. 06
31
Command
Syntax
Default
Notes
Set text insertion
point using pixel
values
FE 79 [x][y]
254 121 [x][y]
254 'y' [x][y]
n/a
Sets text insertion point to position (x,y), where
x and y are in pixels. Value is top left corner of
next text character.
Set current font
FE 31 [font id]
254 49
254 '1'
n/a
Sets font to [font id]. Font must be in memory.
Set font metrics
FE 32 [metrics]
254 50 [metrics]
254 '2' [metrics]
n/a
For definition of [metrics] see section 3.3.7.
8.5 Graphics Commands
Table 8-2 Graphics Commands
Command
Syntax
Notes
Set drawing color
FE 63 [color]
254 99 [color]
254 'c' [color]
Sets color (0 = white, 255 = black) for the various
drawing commands.
Draw line
FE 6C [x
1
][y
1
][x
2
][y
2
]
254 108 [x
1
][y
1
][x
2
][y
2
]
254 'l' [x
1
][y
1
][x
2
][y
2
]
Draws a line from x1,y1 to x2, y2. x values are from 0
– 63 (decimal) and y values from 0 – 239 (decimal).
Continue line
FE 65 [x][y]
254 101 [x][y]
254 'e' [x][y]
Continues line from last line end (x2,y2) to (x,y). Uses
current drawing color.
Put pixel
FE 70 [x][y]
254 112 [x][y]
254 'p' [x][y]
Puts pixel in position (x,y). Uses current drawing color.
Draw outline
rectangle
FE 72 [color][x
1
][y
1
][x
2
][y
2
]
254 114 [color][x
1
][y
1
][x
2
][y
2
]
254 'r' [color][x1][y1][x2][y2]
Draws a rectangular outline using color [color].
Draw solid
rectangle
FE 78 [color][x1][y1][x2][y2]
254 120 [color][x1][y1][x2][y2]
254 'x' [color][x
1
][y
1
][x
2
][y
2
]
Draws a solid rectangle using color [color].
Initialize bar
graph
FE 67 [ref][type][x
1
][y
1
][x
2
][y
2
]
254 103 [ref][type][x
1
][y
1
][x
2
][y
2
]
254 'g' [ref][type][x
1
][y
1
][x
2
][y
2
]
Sets aside space for a bar graph. [ref] is reference
number (0-15) for use by the Write to Bar Graph
command. [type] has values:
0 = vertical, starting from bottom
1 = horizontal, starting from left
2 = vertical, starting from top
3 = horizontal, starting from right
Write to bar
graph
FE 69 [ref][value]
254 105 [ref][value]
254 'I' [ref][value]
Fills the bar graph referred to as [ref] from start to
[value]. [value] is in pixels.
Display saved
bitmap
FE 62 [ref][x][y]
254 98 [ref][x][y]
254 'b' [ref][x][y]
Causes bitmap [ref] to be displayed with its top left
corner starting at position (x,y).