# Gimp.context_set_brush

    function context_set_brush(name: String): Boolean {
        // Gjs wrapper for gimp_context_set_brush()
    }

Set the specified brush as the active brush.

This procedure allows the active brush to be set by specifying its name. The name is simply a string which corresponds to one of the names of the installed brushes. If there is no matching brush found, this procedure will return an error. Otherwise, the specified brush becomes active and will be used in all subsequent paint operations.

Since 2.2

name

  The name of the brush.

Returns

  TRUE on success.