3 drawing – Matrix Orbital GLK240128-25 User Manual

Page 27

Advertising
background image

22

Command Summary

6.3 Drawing

3.1 Set Drawing
Colour

Dec
Hex
ASCII

254 99

FE 63

■ c

Colour
Colour
Colour

v8.0

Set the colour to be used for all future drawing commands that do not implicitly specify colour.

Colour

Byte

0 for background or any other value for text colour.


3.2 Draw
Pixel

Dec
Hex
ASCII

254 112

FE 70

■ p

X Y
X Y
X Y

v8.0

Draw a single pixel at the specified coordinate using the current drawing colour.

X

Byte

Horizontal position of pixel to be drawn.

Y

Byte

Vertical position of pixel to be drawn.


3.3 Draw a
Line

Dec
Hex
ASCII

254 108

FE 6C

■ l

X1 Y1 X2 Y2
X1 Y1 X2 Y2
X1 Y1 X2 Y2

v8.0

Draw a line connecting two termini. Lines may be rendered differently when drawn right to left versus left to right.

X1

Byte

Horizontal coordinate of first terminus.

Y1

Byte

Vertical coordinate of first terminus.

X2

Byte

Horizontal coordinate of second terminus.

Y2

Byte

Vertical coordinate of second terminus.

3.4 Continue a
Line

Dec
Hex
ASCII

254 101

FE 65

■ e

X Y
X Y
X Y

v8.0

Draw a line from the last point drawn to the coordinate specified using the current drawing colour.

X

Byte

Left coordinate of terminus.

Y

Byte

Top coordinate of terminus.


3.5 Draw a
Rectangle

Dec
Hex
ASCII

254 114

FE 72

■ r

Colour X1 Y1 X2 Y2
Colour X1 Y1 X2 Y2
Colour X1 Y1 X2 Y2

v8.0

Draw a rectangular frame one pixel wide using the colour specified; current drawing colour is ignored.

Colour

Byte

0 for background or any other value for text colour.

X1

Byte

Leftmost coordinate.

Y1

Byte

Topmost coordinate.

X2

Byte

Rightmost coordinate.

Y2

Byte

Bottommost coordinate.



Advertising
This manual is related to the following products: