#NEWLINE# def __init__( self , color = None , pick_for = None , picker = RGB_color_picker , pick_key = hash_or_str , **kwargs ) : #NEWLINE# #INDENT# if ( picker is None ) : #NEWLINE# #INDENT# pick_key = ( lambda x : x ) #NEWLINE# #UNINDENT# if ( pick_for is not None ) : #NEWLINE# #INDENT# color = picker ( pick_key ( pick_for ) ) #NEWLINE# #UNINDENT# if isinstance ( color , Color ) : #NEWLINE# #INDENT# self . web = color . web #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . web = ( color if color else 'black' ) #NEWLINE# #UNINDENT# self . equality = RGB_equivalence #NEWLINE# for ( k , v ) in kwargs . items ( ) : #NEWLINE# #INDENT# setattr ( self , k , v )