multicoloured light display
[tabakrolletjie.git] / tabakrolletjie / transforms.py
index 88f516169e02dfe46ff22523eb28a353ad421a75..50cb1d1de42287b977ba84e1d5a4b8420956b62f 100644 (file)
@@ -66,6 +66,16 @@ class Multiply(Transform):
         return surface
 
 
+class MultiplyImage(Transform):
+    """ Apply a colour by multiplying. """
+
+    ARGS = ["image"]
+
+    def apply(self, surface):
+        surface.blit(self.image, (0, 0), None, pgl.BLEND_RGBA_MULT)
+        return surface
+
+
 class Alpha(Transform):
     """ Make translucent. """