Gimp.RGB.set_pixel

@accepts(Gimp.RGB, Babl.Object, gpointer)
@returns(none)
def set_pixel(self, format, pixel):
    # Python wrapper for gimp_rgb_set_pixel()
  

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

Since 2.10

self

a Gimp.RGB struct

format

a Babl format

pixel

pointer to the source pixel