def avgColor(self): self.refresh() if self._avgColor is None: self._avgColor = pygame.transform.average_color(self._srf) return self._avgColor