

def settint(self, r=0, g=0, b=0, region=None):
    '\n        Set the brightness level of a region of cells. The r, g, and b parameters are the amount of red, green, and blue tint used for the region of cells. 0 is no tint at all, whereas 255 is maximum tint and -255 is maximum removal of that color.\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(y, (y + height)):
            self._screenRdelta[ix][iy] = getwithinrange(r, min=(- 255))
            self._screenGdelta[ix][iy] = getwithinrange(g, min=(- 255))
            self._screenBdelta[ix][iy] = getwithinrange(b, min=(- 255))
            self._screendirty[ix][iy] = True
    if self._autoupdate:
        self.update()

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