diff --git a/examples/demo_mandelbrot.py b/examples/demo_mandelbrot.py index 558cfbfa62d99e803f6bff2b669d28d76fe3b308..45fd74e59af36e675e99851c22507bc07e8f4057 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