<?xml version="1.0"?>
<page id="Gimp.brush_set_hardness"
      type="topic"
      style="function"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="index" group="function" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Number(gdouble)</api:type>
      </api:returns>
      <api:name>gimp_brush_set_hardness</api:name>
      <api:arg>
        <api:type>String</api:type>
        <api:name>name</api:name>
      </api:arg>
      <api:arg>
        <api:type>Number(gdouble)</api:type>
        <api:name>hardness_in</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.brush_set_hardness</title>
  <synopsis><code mime="text/x-gjs">
function brush_set_hardness(name: String, hardness_in: Number(gdouble)): Number(gdouble) {
    // Gjs wrapper for gimp_brush_set_hardness()
}
  </code></synopsis>
  <p>Sets the hardness of a generated brush.</p>  <p>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.</p>
  <p>Since 2.4</p>
<terms>
<item>
<title><code>name</code></title>
  <p>The brush name.</p>
</item>
<item>
<title><code>hardness_in</code></title>
  <p>The desired brush hardness.</p>
</item>
<item>
<title><code>Returns</code></title>
  <p>The brush hardness actually assigned.</p>
</item>
</terms>

</page>
