Gimp.RGB.prototype.set_pixel

function set_pixel(format: Babl.Object, pixel: void): void {
    // Gjs wrapper for gimp_rgb_set_pixel()
}
  

Sets the red, green and blue components of rgb from the color stored in pixel. The pixel format of pixel is determined by format.

Since 2.10

format

a Babl format

pixel

pointer to the source pixel