def get_hex_from_color(color):
 return ('#' + ''.join(['{0:02x}'.format(int((x * 255))) for x in color]))

def get_hex_from_color ( color ) : return ( '#' + '' . join ( [ '{0:02x}' . format ( int ( ( x * 255 ) ) ) for x in color ] ) )
transform a kivy :class:~kivy .