You ate my fractal is a fractal explorer. By zooming, panning, and enhancing, you can explore various fractals.
For this zoomer I used a quad tree to represent the image. Each level is a higher resolution image. When we enhance, we go to a deeper depth. When we zoom and pan, we change what sections of the tree we explore. The quad tree is infinite and will expand as long as your computer has enough memory.
This code is highly unoptimized and will use a lot of memory and CPU.
Usage: you-ate-my-fractal <fractal> <depth> <x1 y1 x2 y2>,
Fractal is either mandel, newton, julia, test. Depth is recursion depth for generating the colors and is optional. If Depth is ommited, the default of 100 is used. The range is an optional parameters also. (x1, y1) are top left, (x2, y2) are bottom right. If it is ommitted, (-2, 2), (2, -2) is used.
you-ate-my-fractal mandel 120 -2.5 2 2.5 -2
- Zoom Zoom in by clicking a point and dragging down and to the left to create a box around a region. That region will be what shows up on the screen.
- Pan Pan by using the arrow keys
- Enhance Use the ‘e’ key
- Dehance Use the ‘d’ key
- Reset Use the ‘r’ key
cabal configure
cabal install