Grx.user_draw_line

@accepts(int, int, int, int, Grx.Color)
@returns(none)
def user_draw_line(x1, y1, x2, y2, c):
    # Python wrapper for grx_user_draw_line()
  

Draws a line on the current context from the starting coordinates to the ending coordinates using the specified color.

For horizontal and vertical lines, see Grx.user_draw_hline and Grx.user_draw_vline.

x1

starting X coordinate

y1

starting Y coordinate

x2

ending X coordinate

y2

ending Y coordinate

c

the color