Grx.draw_polygon_with_options

function draw_polygon_with_options(points: Array(Grx.Point), o: Grx.LineOptions): void {
    // Gjs wrapper for grx_draw_polygon_with_options()
}
  

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

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

o

the options