# Gimp.brush_set_aspect_ratio

    function brush_set_aspect_ratio(name: String, aspect_ratio_in: Number(gdouble)): Number(gdouble) {
        // Gjs wrapper for gimp_brush_set_aspect_ratio()
    }

Sets the aspect ratio of a generated brush.

This procedure sets the aspect ratio 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 1000.0.

Since 2.4

name

  The brush name.

aspect_ratio_in

  The desired brush aspect ratio.

Returns

  The brush aspect ratio actually assigned.