mult.fill(self.colour)
surface.blit(mult, (0, 0), None, pgl.BLEND_RGBA_MULT)
return surface
+
+
+class Alpha(Transform):
+ """ Make translucent. """
+
+ ARGS = ["alpha"]
+
+ def apply(self, surface):
+ surface.fill((255, 255, 255, self.alpha), None, pgl.BLEND_RGBA_MULT)
+ return surface