This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mandelista: a Mandelbrot set explorer for Pythonista. | |
# Dragging selects a region which is highlighted; | |
# tapping inside the highlighted region zooms to the region; | |
# tapping outside the region cancels the selection. | |
# By Guy K Hillyer, a Python neophyte. | |
from scene import * | |
# The class Region represents the area of the graph that is being | |
# examined. It has two coordinate systems: the range of real numbers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from scene import * | |
from PIL import Image | |
class MyScene (Scene): | |
def setup(self): | |
self.x = 0 | |
self.sz = int(self.bounds.w) | |
self.img = Image.new('RGBA', (self.sz, self.sz)) | |