# Gimp.context_set_paint_method

    function context_set_paint_method(name: String): Boolean {
        // Gjs wrapper for gimp_context_set_paint_method()
    }

Set the specified paint method as the active paint method.

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

Since 2.4

name

  The name of the paint method.

Returns

  TRUE on success.