# Gimp.rgba_set

    function rgba_set(rgba: Gimp.RGB, red: Number(gdouble), green: Number(gdouble), blue: Number(gdouble), alpha: Number(gdouble)): void {
        // Gjs wrapper for gimp_rgba_set()
    }

Sets the red, green, blue and alpha components of @rgb. The values should be between 0.0 and 1.0 but there is no check to enforce this and the values are set exactly as they are passed in.

rgba

  a Gimp.RGB struct

red

  the red component

green

  the green component

blue

  the blue component

alpha

  the alpha component