Grx.generate_points
function generate_points(coords: Array(Number(gint))): Array(Grx.Point) {
// Gjs wrapper for grx_generate_points()
}
Creates an array of points.
This function is intended for use with language bindings that don't have an elegant way to create an array of points. Each pair of coordinates is converted into a point, so the returned array will be 1/2 the length of coords.
- coords
the coordinate pairs
- Returns
a new GLib.Array