# Gimp.Drawable.prototype.set_pixel

    function set_pixel(x_coord: Number(gint), y_coord: Number(gint), pixel: ByteArray): Boolean {
        // Gjs wrapper for gimp_drawable_set_pixel()
    }

Sets the value of the pixel at the specified coordinates.

This procedure sets the pixel value at the specified coordinates. The 'num_channels' argument must always be equal to the bytes-per-pixel value for the specified drawable. Note that this function is not undoable, you should use it only on drawables you just created yourself.

x_coord

  The x coordinate.

y_coord

  The y coordinate.

pixel

  The pixel value.

Returns

  TRUE on success.