Gimp.brush_set_hardness

function brush_set_hardness(name: String, hardness_in: Number(gdouble)): Number(gdouble) {
    // Gjs wrapper for gimp_brush_set_hardness()
}
  

Sets the hardness of a generated brush.

This procedure sets the hardness for a generated brush. If called for any other type of brush, it does not succeed. The value should be a float between 0.0 and 1.0.

Since 2.4

name

The brush name.

hardness_in

The desired brush hardness.

Returns

The brush hardness actually assigned.