python Programming Glossary: self.dirty
Render anti-aliased text on transparent surface in pygame http://stackoverflow.com/questions/15488293/render-anti-aliased-text-on-transparent-surface-in-pygame font size self.screen pygame.display.get_surface self.dirty True self.image None self._render def _render self # render.. transparent. With AA you need to set the color key too self.dirty False self.image self.font.render self._text self.aa self.color_fg.. self # Call this do draw always prefers to use cache if self.dirty or self.image is None self._render self.screen.blit self.image..
|