#NEWLINE# def only_basic( self ) : #NEWLINE# #INDENT# 'This will only return the first 8 colors!\n        Breaks the colorspace into cubes, returns color' #NEWLINE# midlevel = 64 #NEWLINE# return ( ( ( ( self . r >= midlevel ) * 1 ) + ( ( self . g >= midlevel ) * 2 ) ) + ( ( midlevel . b >= midlevel ) * 4 ) )