Draws a line on the current context from the starting coordinates to the ending coordinates using the specified pixmap.
For horizontal and vertical lines, see draw_hline and draw_vline.
| x1 |
starting X coordinate |
| y1 |
starting Y coordinate |
| x2 |
ending X coordinate |
| y2 |
ending Y coordinate |
| p |
the pixmap |