(self, colour_on)
Set the NTSC colorburst bit.
Set the NTSC colorburst bit.
Set the NTSC colorburst bit .
def set_colorburst(self, colour_on):
        """Set the NTSC colorburst bit."""
        if not self._has_colorburst:
            return
        # On a composite monitor with CGA adapter (not EGA, VGA):
        # - on SCREEN 1 and 0 this switches between colour and greyscale
        # On an RGB monitor:
        # - on SCREEN 1 this switches between mode 4/5 palettes (RGB)
        if self._force_colour:
            # ega ignores colorburst; tandy and pcjr have no mode 5
            self._mode_5 = not colour_on
            self.set_cga4_palette(1)
        else:
            self._mono = self._force_mono or not colour_on
            # reset the palette for mono, submit to interface
            self.reset()
def set_colorburst ( self , colour_on ) : if not self . _has_colorburst : return # On a composite monitor with CGA adapter (not EGA, VGA): # - on SCREEN 1 and 0 this switches between colour and greyscale # On an RGB monitor: # - on SCREEN 1 this switches between mode 4/5 palettes (RGB) if self . _force_colour : # ega ignores colorburst; tandy and pcjr have no mode 5 self . _mode_5 = not colour_on self . set_cga4_palette ( 1 ) else : self . _mono = self . _force_mono or not colour_on # reset the palette for mono, submit to interface self . reset ( )