(self, n=256, s=1, v=1, start=0, end=1, alpha=1)
Creates a rainbow palette.

        @param n: the number of colors in the palette.
        @param s: the saturation of the colors in the palette.
        @param v: the value component of the colors in the palette.
        @param start: the hue at which the rainbow begins (between 0 and 1).
        @param end: the hue at which the rainbow ends (between 0 and 1).
        @param alpha: the alpha component of the colors in the palette.
Creates a rainbow palette.
Creates a rainbow palette .
def __init__(self, n=256, s=1, v=1, start=0, end=1, alpha=1):
        """Creates a rainbow palette.

        @param n: the number of colors in the palette.
        @param s: the saturation of the colors in the palette.
        @param v: the value component of the colors in the palette.
        @param start: the hue at which the rainbow begins (between 0 and 1).
        @param end: the hue at which the rainbow ends (between 0 and 1).
        @param alpha: the alpha component of the colors in the palette.
        """
        Palette.__init__(self, n)
        self._s = float(clamp(s, 0, 1))
        self._v = float(clamp(v, 0, 1))
        self._alpha = float(clamp(alpha, 0, 1))
        self._start = float(start)
        if end == self._start:
            end += 1
        self._dh = (end - self._start) / n
def __init__ ( self , n = 256 , s = 1 , v = 1 , start = 0 , end = 1 , alpha = 1 ) : Palette . __init__ ( self , n ) self . _s = float ( clamp ( s , 0 , 1 ) ) self . _v = float ( clamp ( v , 0 , 1 ) ) self . _alpha = float ( clamp ( alpha , 0 , 1 ) ) self . _start = float ( start ) if end == self . _start : end += 1 self . _dh = ( end - self . _start ) / n