Skip to content

awbraunstein/you-ate-my-fractal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

You ate my fractal

1 Overview

You ate my fractal is a fractal explorer. By zooming, panning, and enhancing, you can explore various fractals.

2 Data Structure

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.

3 Beware

This code is highly unoptimized and will use a lot of memory and CPU.

4 Use

4.1 Running

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.

4.2 Example

you-ate-my-fractal mandel 120 -2.5 2 2.5 -2

4.3 In program commands

  • 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

5 Installation

cabal configure
cabal install

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published