def apply(self, img, n=0): srf = self.srfSize(img) color = [round(c + (255 - c) * n) for c in self.color] srf.fill(color, None, pygame.BLEND_RGBA_MULT) return img