

def setscreencolors(self, fgcolor=None, bgcolor=None, clear=False):
    '\n        Sets the foreground and/or background color of the entire screen to the ones specified in the fgcolor and bgcolor parameters. Also sets the PygcurseSurface\'s default foreground and/or background colors. The brightness of all cells is reset back to 0. This is a good "clear screen" function to use.\n\n        fgcolor - foreground color. If None, then the foreground color isn\'t changed.\n        bgcolor - background color. If None, then the background color isn\'t changed.\n        clear - If set to True, then all the characters on the surface will be erased so that the screen is just a solid fill of the background color. This parameter is False by default.\n        '
    if (fgcolor is not None):
        self.fgcolor = getpygamecolor(fgcolor)
    if (bgcolor is not None):
        self.bgcolor = getpygamecolor(bgcolor)
    char = ((clear and ' ') or None)
    self.fill(char, fgcolor, bgcolor)
    self.setbrightness()

dataset/ETHPy150Open asweigart/pygcurse/pygcurse/__init__.py PygcurseSurface.setscreencolors/original