
www.4dsystems.com.au
µ
V
G
A
-PICASO-
MD1
17
6.1.5
Draw
C
ircle
(
C
)
Serial Syntax :
cmd, x
(msb:lsb),
y
(msb:lsb),
rad
(msb:lsb),
colour
4DGL Syntax :
(refer to 4DGL programmers manual)
cmd :
43
hex
, C
ascii
x :
circle centre horizontal position. 2 bytes
y :
circle centre vertical position. 2 bytes
rad :
radius size of the circle. 2 bytes
colour
:
circle colour value. 1 byte
Description :
This command will draw a coloured circle centred at
(x, y)
with a
radius determined by the value of
rad
. The circle can be either solid or wire frame
(empty) depending on the value of the Pen Size (see
Set Pen Size
command). When
Pen Size = 0 circle is solid, Pen Size = 1 circle is wire frame.
Example :
43
hex
, 00, 3F
hex
, 00, 3F
hex
, 00, 22
hex
, 07
hex
Draws a RED circle (
07
hex) centred at x =
63
dec (
003F
hex) and y =
63
dec
(
003F
hex) with a radius of
34
dec (
22
hex).