From 14832fab17d235bcb2021177f005277785a7cd62 Mon Sep 17 00:00:00 2001
From: Holger Rapp <HolgerRapp@gmx.net>
Date: Fri, 16 Jul 2010 13:18:02 +0200
Subject: [PATCH] Some more graphical pimping

---
 examples/demo_mandelbrot.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/examples/demo_mandelbrot.py b/examples/demo_mandelbrot.py
index 558cfbfa..45fd74e5 100644
--- a/examples/demo_mandelbrot.py
+++ b/examples/demo_mandelbrot.py
@@ -142,10 +142,13 @@ if __name__ == '__main__':
             """"
             create the image from the draw() string
             """
+            # you can experiment with these x and y ranges
             self.draw(-2.13, 0.77, -1.3, 1.3)
             self.im = Image.fromarray(self.mandel)
-            # you can experiment with these x and y ranges
-            # self.im.fromstring(self.mandel, "raw", "RGB", 0, -1)
+            self.im.putpalette(reduce(
+                lambda a,b: a+b, ((i,0,0) for i in range(255))
+            ))
+
 
         def create_label(self):
             # put the image on a label widget
-- 
GitLab