# Gimp.brush_set_hardness

    @accepts(unicode, float)
    @returns(float)
    def brush_set_hardness(name, hardness_in):
        # Python 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