#NEWLINE# def hex_color( value ) : #NEWLINE# #INDENT# 'Accepts a hexadecimal color `value` in the format ``0xrrggbb`` and\n    returns an (r, g, b) tuple where 0.0 <= r, g, b <= 1.0.\n    ' #NEWLINE# r = ( ( ( value >> ( 8 * 2 ) ) & 255 ) / 255.0 ) #NEWLINE# g = ( ( ( value >> ( 8 * 1 ) ) & 255 ) / 255.0 ) #NEWLINE# b = ( ( ( value >> ( 8 * 0 ) ) & 255 ) / 255.0 ) #NEWLINE# return ( r , g , b )