4 graphics commands – Matrix Orbital GLK12232-25-SM Legacy User Manual
Page 32
32
Command Syntax
Default
Notes
Set text insertion
point
FE 47 [col] [row]
254 71 [col] [row]
254 'G' [col] [row]
n/a
Sets text insertion point using the base size of
the current font
Set text insertion
point to top left
FE 48
254 72
254 'H'
This command moves the text insertion point to
the top left of the display area, based on the
metrics of the current font. See "Set font
metrics" (section 3.3.7) for more details.
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.4 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
– 31 (decimal) and y values from 0 – 121 (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