def mage_hsv_tuple_to_rgb(hsv):
 hsv_0_to_1 = ((hsv[0] / 360.0), (hsv[1] / 100.0), (hsv[2] / 100.0))
 rgb = hsv_to_rgb(*tuple(hsv_0_to_1))
 return (int((rgb[0] * 255)), int((rgb[1] * 255)), int((rgb[2] * 255)))

def mage_hsv_tuple_to_rgb ( hsv ) : hsv_0_to_1 = ( ( hsv [ 0 ] / 360.0 ) , ( hsv [ 1 ] / 100.0 ) , ( hsv [ 2 ] / 100.0 ) ) rgb = hsv_to_rgb ( * tuple ( hsv_0_to_1 ) ) return ( int ( ( rgb [ 0 ] * 255 ) ) , int ( ( rgb [ 1 ] * 255 ) ) , int ( ( rgb [ 2 ] * 255 ) ) )
converts hsv tuple on mage scale to rgb on 0-255 scale .