#NEWLINE# @ property #NEWLINE# def ansi_codes( self ) : #NEWLINE# #INDENT# 'This is the full ANSI code, can be reset, simple, 256, or full color.' #NEWLINE# ansi_addition = ( 30 if self . fg else 40 ) #NEWLINE# if self . isreset : #NEWLINE# #INDENT# return ( ( ansi_addition + 9 ) , ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . representation < 3 ) : #NEWLINE# #INDENT# return ( ( color_codes_simple [ self . number ] + ansi_addition ) , ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . representation == 3 ) : #NEWLINE# #INDENT# return ( ( ansi_addition + 8 ) , 5 , self . number ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( ( ansi_addition + 8 ) , 2 , self . rgb [ 0 ] , self . rgb [ 1 ] , self . rgb [ 2 ] )