Gimp.brush_set_shape
function brush_set_shape(name: String, shape_in: Gimp.BrushGeneratedShape): Gimp.BrushGeneratedShape {
// Gjs wrapper for gimp_brush_set_shape()
}
Sets the shape of a generated brush.
This procedure sets the shape value for a generated brush. If called for any other type of brush, it does not succeed. The current possibilities are Circle (GIMP_BRUSH_GENERATED_CIRCLE), Square (GIMP_BRUSH_GENERATED_SQUARE), and Diamond (GIMP_BRUSH_GENERATED_DIAMOND). Other shapes are likely to be added in the future.
Since 2.4
- name
The brush name.
- shape_in
The brush shape.
- Returns
The brush shape actually assigned.