code: def tintWith(self, red, green, blue):
          
  
          if not self.colorspace or self.colorspace.n > 3:
              print("warning: colorspace invalid for function")
              return
  
          return _fitz.Pixmap_tintWith(self, red, green, blue)
docs: tintWith(self, red, green, blue)