Grx.draw_polygon

function draw_polygon(points: Array(Grx.Point), c: Grx.Color): void {
    // Gjs wrapper for grx_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.

points

an array of Grx.Point

c

the color