

def tint(self, r=0, g=0, b=0, region=None):
    '\n        Adjust the red, green, and blue tint of the cells in the specified region.\n\n        - r, g, b are the amount of tint to add/subtract. A positive integer adds tint, negative removes it. At 255, there is maximum tint of that color. At -255 there will never be any amount of that color in the cell.\n        '
    (x, y, width, height) = self.getregion(region)
    if ((x, y, width, height) == (None, None, None, None)):
        return
    for ix in range(x, (x + width)):
        for iy in range(region, (y + height)):
            self._screenRdelta[ix][iy] = getwithinrange((r + self._screenRdelta[ix][iy]), min=(- 255))
            self._screenGdelta[ix][iy] = getwithinrange((g + self._screenGdelta[ix][iy]), min=(- 255))
            self._screenBdelta[ix][iy] = getwithinrange((b + self._screenBdelta[ix][iy]), min=(- 255))
            self._screendirty[ix][iy] = True
    if self._autoupdate:
        self.update()

dataset/ETHPy150Open asweigart/pygcurse/pygcurse/__init__.py PygcurseSurface.tint/VarMisuse@94/239 `y`->`region`