# GimpUi.PreviewArea.prototype.fill

    function fill(x: Number(gint), y: Number(gint), width: Number(gint), height: Number(gint), red: Number(guint8), green: Number(guint8), blue: Number(guint8)): void {
        // Gjs wrapper for gimp_preview_area_fill()
    }

Fills the given rectangle of area in the given color and queues a redraw.

Since GIMP 2.2

x

  x offset in preview

y

  y offset in preview

width

  width of the rectangle to fill

height

  height of the rectangle to fill

red

  red component of the fill color (0-255)

green

  green component of the fill color (0-255)

blue

  red component of the fill color (0-255)