#NEWLINE# def shift( self , pct , rotate = False , callback = True ) : #NEWLINE# #INDENT# work = self . _shift ( self . sarr , pct , rotate = rotate ) #NEWLINE# assert ( len ( work ) == 256 ) , RGBMapError ( 'shifted shift map is != 256' ) #NEWLINE# self . sarr = work #NEWLINE# if callback : #NEWLINE# #INDENT# self . make_callback ( 'changed' )