def convert2hex(x):
    
    red = map(lambda c: "%02X" %int(round(c*255)), x['red'])
    green = map(lambda c: "%02X" %int(round(c*255)), x['green'])
    blue = map(lambda c: "%02X" %int(round(c*255)), x['blue'])
    
    return ["#"+"".join([r,g,b]) for r,g,b in itertools.izip(red,green,blue)]
readline([size]) -> next line from the file, as a string.
dataset/ETHPy150Open taoliu/taolib/Assoc/graphics.py/convert2hex--crossover with--dataset/ETHPy150Open mockfs/mockfs/mockfs/storage.py/file.readline