# Gimp.Brush.prototype.set_aspect_ratio

    function set_aspect_ratio(aspect_ratio_in: Number(gdouble)): [ok: Boolean, aspect_ratio_out: Number(gdouble)] {
        // Gjs wrapper for gimp_brush_set_aspect_ratio()
    }

Sets the aspect ratio of a generated brush.

Sets the aspect ratio for a generated brush. Clamps aspect ratio to [0.0, 1000.0]. Returns the clamped value. Returns an error when brush is non-parametric or not editable.

Since 2.4

aspect_ratio_in

  The desired brush aspect ratio.

ok

  TRUE on success.

aspect_ratio_out

  The brush aspect ratio actually assigned.