def rgb_tuple_to_hsv(rgb):
 rgb_0_to_1 = (array(rgb) / 255.0)
 hsv = rgb_to_hsv(*tuple(rgb_0_to_1))
 return ((hsv[0] * 360), (hsv[1] * 100), (hsv[2] * 100))

def rgb_tuple_to_hsv ( rgb ) : rgb_0_to_1 = ( array ( rgb ) / 255.0 ) hsv = rgb_to_hsv ( * tuple ( rgb_0_to_1 ) ) return ( ( hsv [ 0 ] * 360 ) , ( hsv [ 1 ] * 100 ) , ( hsv [ 2 ] * 100 ) )
converts rgb tuple to hsv on mages scale .