Gimp.RGB.prototype.set_alpha

function set_alpha(alpha: Number(gdouble)): void {
    // Gjs wrapper for gimp_rgb_set_alpha()
}
  

Sets the alpha component of rgb and leaves the RGB components unchanged.

alpha

the alpha component