Gimp.Vectors.prototype.stroke_get_points

function stroke_get_points(stroke_id: Number(gint)): [return_value: Gimp.VectorsStrokeType, controlpoints: Array(Number(gdouble)), closed: Boolean] {
    // Gjs wrapper for gimp_vectors_stroke_get_points()
}
  

returns the control points of a stroke.

returns the control points of a stroke. The interpretation of the coordinates returned depends on the type of the stroke. For Gimp 2.4 this is always a bezier stroke, where the coordinates are the control points.

Since 2.4

stroke_id

The stroke ID.

return_value

type of the stroke (always GIMP_VECTORS_STROKE_TYPE_BEZIER for now).

controlpoints

List of the control points for the stroke (x0, y0, x1, y1, ...).

closed

Whether the stroke is closed or not.