(self, color1, color2, n=256)
Creates a gradient palette.

        @param color1: the color where the gradient starts.
        @param color2: the color where the gradient ends.
        @param n: the number of colors in the palette.
Creates a gradient palette.
Creates a gradient palette .
def __init__(self, color1, color2, n=256):
        """Creates a gradient palette.

        @param color1: the color where the gradient starts.
        @param color2: the color where the gradient ends.
        @param n: the number of colors in the palette.
        """
        Palette.__init__(self, n)
        self._color1 = color_name_to_rgba(color1)
        self._color2 = color_name_to_rgba(color2)
def __init__ ( self , color1 , color2 , n = 256 ) : Palette . __init__ ( self , n ) self . _color1 = color_name_to_rgba ( color1 ) self . _color2 = color_name_to_rgba ( color2 )