diff options
author | David Phillips <dbphillipsnz@gmail.com> | 2015-06-06 22:14:00 +1200 |
---|---|---|
committer | David Phillips <dbphillipsnz@gmail.com> | 2015-06-06 22:14:00 +1200 |
commit | 7bf6246b44be7539a65cee3ee3a5b9232b3fc608 (patch) | |
tree | 05c88840dd27f88f6fc335341ff73cb9e823e0c3 | |
parent | 684e26ce72e75e9812390d43fa2cb43452ea0816 (diff) | |
download | fractal-gen-7bf6246b44be7539a65cee3ee3a5b9232b3fc608.tar.xz |
Added readme
-rw-r--r-- | README.md | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..53dc179 --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +Mandelbrot +========== +This is a tiny program which will output a very basic raw format square image of a mandelbrot set. + +Just invoke it like + + ./mbrot-gen 1000 100 2 > image.raw + +For a 1000x1000 point image of a mandelbrot set using 100 iterations and an exponent of 2. +For the cliché set you'll want to keep the exponent at 2. + +You'll then want something to turn this megabyte monster into something pretty you can look at. +I've got some pieces of software for viewing live and also processing into PNG tiles, but they need a tidy up before putting on GitHub. + +Each point is represented in the output format as a byte. +This byte's value ranges in proportion with the number of iterations it took to decide if the point is in the set or not. +In the aboove, a value of 255 means it took 100 iterations, a value of 127 means 50 iterations, and so on. + + +Notes +----- + +1. This has your CPU over a barrel. + It spawns twice as many threads as you have cores, so have fun with that. + I'm looking at adding an option to override the number of threads. + + |