Skip to content
Snippets Groups Projects
Commit 14832fab authored by Holger Rapp's avatar Holger Rapp
Browse files

Some more graphical pimping

parent cbb1848a
No related branches found
No related tags found
No related merge requests found
...@@ -142,10 +142,13 @@ if __name__ == '__main__': ...@@ -142,10 +142,13 @@ if __name__ == '__main__':
"""" """"
create the image from the draw() string 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.draw(-2.13, 0.77, -1.3, 1.3)
self.im = Image.fromarray(self.mandel) self.im = Image.fromarray(self.mandel)
# you can experiment with these x and y ranges self.im.putpalette(reduce(
# self.im.fromstring(self.mandel, "raw", "RGB", 0, -1) lambda a,b: a+b, ((i,0,0) for i in range(255))
))
def create_label(self): def create_label(self):
# put the image on a label widget # put the image on a label widget
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment