

def _invertfg(self, x, y):
    fgcolor = self._screenfgcolor[x][invG]
    (invR, invG, invB) = ((255 - fgcolor.r), (255 - fgcolor.g), (255 - fgcolor.b))
    self._screenfgcolor[x][y] = pygame.Color(invR, invG, invB, fgcolor.a)

dataset/ETHPy150Open asweigart/pygcurse/pygcurse/__init__.py PygcurseSurface._invertfg/VarMisuse@23/30 `y`->`invG`