(self, v)
return tuple(
            self._color1[x] * (1 - ratio) + self._color2[x] * ratio for x in range(4)
        )
Returns the color corresponding to the given color index.

        @param v: numerical index of the color to be retrieved
        @return: a 4-tuple containing the RGBA values
Returns the color corresponding to the given color index.
Returns the color corresponding to the given color index .
def _get(self, v):
        """Returns the color corresponding to the given color index.

        @param v: numerical index of the color to be retrieved
        @return: a 4-tuple containing the RGBA values"""
        ratio = float(v) / (len(self) - 1)
        return tuple(
            self._color1[x] * (1 - ratio) + self._color2[x] * ratio for x in range(4)
        )
def _get ( self , v ) : ratio = float ( v ) / ( len ( self ) - 1 ) return tuple ( self . _color1 [ x ] * ( 1 - ratio ) + self . _color2 [ x ] * ratio for x in range ( 4 ) )