Gimp.RGB.prototype.set_uchar

function set_uchar(red: Number(guint8), green: Number(guint8), blue: Number(guint8)): void {
    // Gjs wrapper for gimp_rgb_set_uchar()
}
  

Sets the red, green and blue components of rgb from 8bit values (0 to 255) and leaves the alpha component unchanged.

red

the red component

green

the green component

blue

the blue component