beautypg.com

5 graphics commands – Matrix Orbital GLK24064-25 Legacy User Manual

Page 39

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 met-

rics of the current

font.

See "Set

font metrics", for

more details.

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], please

see “Set font met-

rics”.

8.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.

Matrix Orbital

GLK24064-25

35