# Gimp.Drawable.prototype.edit_clear

    function edit_clear(): Boolean {
        // Gjs wrapper for gimp_drawable_edit_clear()
    }

Clear selected area of drawable.

This procedure clears the specified drawable. If the drawable has an alpha channel, the cleared pixels will become transparent. If the drawable does not have an alpha channel, cleared pixels will be set to the background color. This procedure only affects regions within a selection if there is a selection active.

This procedure is affected by the following context setters: Gimp.context_set_background.

Returns

  TRUE on success.