def colorclose(color, hsva_expected):
 hsva_actual = color.getHsvF()
 return all(((abs((a - b)) <= (2 ** (-16))) for (a, b) in zip(hsva_actual, hsva_expected)))

def colorclose ( color , hsva_expected ) : hsva_actual = color . getHsvF ( ) return all ( ( ( abs ( ( a - b ) ) <= ( 2 ** ( - 16 ) ) ) for ( a , b ) in zip ( hsva_actual , hsva_expected ) ) )
compares hsv values which are stored as 16-bit integers .