def do_resetcommands(self, arg): """ `Author` : Bill Clark Set the check and act commands to empty commands.""" self.m.processor.setActorCommand(PixelProcess.PixelCommand()) self.m.processor.setCheckCommand(PixelProcess.PixelCommand())
def do_takenonemptysecond(self): """ `Author` : Bill Clark When a pixel is checked true, take the new pixel, if it's not (0,0,0)""" self.m.processor.setActorCommand( PixelProcess.TakeNonEmptySecondCommand())
def do_colordiff(self, checknum): """ `Author` : Bill Clark Check a pair of pixels as true if the color difference is less than <number>.""" self.m.processor.setCheckCommand(PixelProcess.ColorDiffCommand()) if checknum: self.m.processor.checkcmd.diffnum = int(checknum) else: self.m.processor.checkcmd.diffnum = 0
def do_extractremote(self, arg): """ `Author` : Bill Clark Set the processor's remote to record changed pixels. Enables group commands.""" self.m.processor = PixelProcess.ExtractPixelRemote()
def do_takesecond(self, arg): """ `Author` : Bill Clark When a pixel is checked true, make it the new pixel.""" self.m.processor.setActorCommand(PixelProcess.TakeSecondCommand())
def do_redhighlight(self, arg): """ `Author` : Bill Clark When a pixel is checked true, make it red.""" self.m.processor.setActorCommand(PixelProcess.RedHighlightCommand())
def do_regularremote(self, arg): """ `Author` : Bill Clark Set the remote to a basic one.""" self.m.processor = PixelProcess.PixelRemote()