Grx.user_draw_polygon

@accepts(int, [Grx.Point], Grx.Color)
@returns(none)
def user_draw_polygon(n_points, points, c):
    # Python wrapper for grx_user_draw_polygon()
  

Draw a closed polygon on the current context that connects each point in the points array using the specified color.

Coordinate arrays can either contain or omit the closing edge of the polygon. It will be automatically appended to the list if it is missing.

n_points

the number of points in points

points

an array of Grx.Point

c

the color