Grx.user_draw_filled_polygon

function user_draw_filled_polygon(points: Array(Grx.Point), c: Grx.Color): void {
    // Gjs wrapper for grx_user_draw_filled_polygon()
}
  

Draw a filled 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.

points

an array of Grx.Point

c

the color