www.4dsystems.com.au
µ
V
G
A
-PICASO-
MD1
23
6.1.11
Draw Trian
G
le
(
G
)
Serial Syntax :
cmd, x1
(msb:lsb),
y1
(msb:lsb),
x2
(msb:lsb),
y2
(msb:lsb),
x3
(msb:lsb),
y3
(msb:lsb),
colour
4DGL Syntax :
(refer to 4DGL programmers manual)
cmd :
47
hex
, G
ascii
x1, y1, x2, y2, x3, y3 :
3 vertices of the triangle. These must be specified in an anti-
clockwise fashion. All 2 byte values.
colour :
triangle colour value. 1 byte.
Description :
This command draws a Solid/Empty triangle. The vertices must be
specified in an anti-clock wise manner, i.e.
x2 < x1, x3 > x2, y2 > y1, y3 > y1
.
A solid or a wire frame triangle is determined by the value of the Pen Size setting, i.e.
0 = solid, 1 = wire frame.