triangle()
Draw a filled triangle with current ink color at given coordinates.
Syntax:
triangle(
xa
,
ya
,
xb
,
yb
,
xc
,
yc
)
Example:
for n = 1 to 100
ink(rnd(16000000))
triangle( rnd(640), rnd(480), rnd(640), rnd(480), rnd(640), rnd(480) )
next
waitKey