beautypg.com

5 graphics commands – Matrix Orbital GLC24064 User Manual

Page 37

background image

Command

Syntax

Default

Notes

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.

Set text insertion point us-
ing 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 sec-
tion 3.3.7.

7.5 Graphics Commands

Table 17: 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 [x1][y1][x2][y2]
254 108 [x1][y1][x2][y2]
254 ’l’ [x1][y1][x2][y2]

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 draw-
ing 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.

Matrix Orbital

GLC24064

33