line()
Draws a line on current screen with ink current color.
Syntax:
line(
sx
,
sy
,
dx
,
dy
)
sx
and
sy
are starting line point coordinates while
dx
and
dy
are ending line point coordinates.
Example:
for n = 1 to 100
ink(rnd(16000000))
line( rnd(640), rnd(480), rnd(640), rnd(480) )
next
waitKey