def inside_gamut(r, g, b):
 return ((r >= 0) and (g >= 0) and (b >= 0))

def inside_gamut ( r , g , b ) : return ( ( r >= 0 ) and ( g >= 0 ) and ( b >= 0 ) )
test whether a requested colour is within the gamut achievable with the primaries of the current colour system .