Grx.user_draw_filled_convex_polygon_with_pixmap

@accepts(int, [Grx.Point], Grx.Pixmap)
@returns(none)
def user_draw_filled_convex_polygon_with_pixmap(n_points, points, p):
    # Python wrapper for grx_user_draw_filled_convex_polygon_with_pixmap()
  

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

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.

This version is slightly more efficient that Grx.draw_filled_polygon but requires that the polygon is convex. It can also be used to fill some concave polygons whose boundaries do not intersect any horizontal scan line more than twice. It can also be used to fill several disjoint nonoverlapping polygons in a single operation.

n_points

the number of points in points

points

an array of Grx.Point

p

the pixmap