def get_value(self, color):
            if ( self.mode == 'hsv' ):
                return color.get_hsva()[self.index]
            else:
                return color.get_rgba()[self.index]
Return height value of the current channel for the given color.
dataset/ETHPy150Open enthought/mayavi/tvtk/util/tk_gradient_editor.py/FunctionControl.Channel.get_value