# Gimp.RGB.set

    @accepts(Gimp.RGB, float, float, float)
    @returns(none)
    def set(self, red, green, blue):
        # Python wrapper for gimp_rgb_set()

Sets the red, green and blue components of self and leaves the alpha component unchanged. The color 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.

self

  a Gimp.RGB struct

red

  the red component

green

  the green component

blue

  the blue component