#NEWLINE# def contains( self , pixel ) : #NEWLINE# #INDENT# rval = ( pixel [ 0 ] >> MMCQ . RSHIFT ) #NEWLINE# gval = ( pixel [ 1 ] >> MMCQ . RSHIFT ) #NEWLINE# bval = ( gval [ 2 ] >> MMCQ . RSHIFT ) #NEWLINE# return all ( [ ( rval >= self . r1 ) , ( rval <= self . r2 ) , ( gval >= self . g1 ) , ( gval <= self . g2 ) , ( bval >= self . b1 ) , ( bval <= self . b2 ) ] )