#NEWLINE# def _from_full( self , color ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# color = color . lower ( ) #NEWLINE# color = color . replace ( ' ' , '' ) #NEWLINE# color = color . replace ( '_' , '' ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# if ( color == 'reset' ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( color in _lower_camel_names ) : #NEWLINE# #INDENT# self . number = _lower_camel_names . index ( color ) #NEWLINE# self . rgb = from_html ( color_html [ self . number ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( isinstance ( color , int ) and ( 0 <= color <= 255 ) ) : #NEWLINE# #INDENT# self . number = self #NEWLINE# self . rgb = from_html ( color_html [ color ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ColorNotFound ( ( 'Did not find color: ' + repr ( color ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . representation = 3 #NEWLINE# self . _init_number ( )