# Gimp.context_set_gradient

    function context_set_gradient(name: String): Boolean {
        // Gjs wrapper for gimp_context_set_gradient()
    }

Sets the specified gradient as the active gradient.

This procedure lets you set the specified gradient as the active or \"current\" one. The name is simply a string which corresponds to one of the loaded gradients. If no matching gradient is found, this procedure will return an error. Otherwise, the specified gradient will become active and will be used for subsequent custom gradient operations.

Since 2.2

name

  The name of the gradient.

Returns

  TRUE on success.