+class RGBSprite(pygame.sprite.DirtySprite, RGB) :
+
+ def __init__(self, alpha=255) :
+ pygame.sprite.DirtySprite.__init__(self)
+ self.dirty = 2 # toujours dirty !
+ RGB.__init__(self)
+
+ self.image = pygame.Surface((640, 480))
+ self._regular = pygame.Surface((640, 480))
+ self.image.set_alpha(alpha)
+ self.rect = pygame.Rect((0, 0), (0, 0))
+
+ def update(self) :
+ RGB.update(self)
+ img = self.capture()
+ self._regular.blit(img, (0, 0))
+ self.image.blit(pygame.transform.flip(self._regular, True, False), (0, 0))
+