Exemple #1
0
    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())
Exemple #2
0
    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())
Exemple #3
0
    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
Exemple #4
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()
Exemple #5
0
    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())
Exemple #6
0
    def do_redhighlight(self, arg):
        """
        `Author` : Bill Clark

        When a pixel is checked true, make it red."""
        self.m.processor.setActorCommand(PixelProcess.RedHighlightCommand())
Exemple #7
0
    def do_regularremote(self, arg):
        """
        `Author` : Bill Clark

        Set the remote to a basic one."""
        self.m.processor = PixelProcess.PixelRemote()