gd::Line Image,Xs,Ys,Xe,Ye,[color]
Use this subroutine to draw a line from the point (Xs,Ys) to (Xe,Ye). The color value is optional. If this is missing the default color is used set by the subroutine gd::SetColor.
If the color value is specified and is undef the styled line definition is used to draw the line. This can be used to draw dashed and other styled lines.