SYNOPSIS
gcx:line(x1, y1, x2, y2[, rgb])
DESCRIPTION
Draws a line from x1, y1 to x2, y2
using the specified color rgb.
If color is not given, uses the stored foreground color.
If color is not given, uses the stored foreground color.
ERRORS
Raises an error if gcx is not a graphics context.
EXAMPLE
Draws a blue cross across the screen:
>
gcx:line(0, 0, gcx:width()-1, gcx:height()-1, 0x0000FF)
>
gcx:line(gcx:width()-1, 0, 0, gcx:height()-1, 0x0000FF)