Simple Mandelbrot Generator
Copyright (C) 2001 Brighten Godfrey <email@example.com>
Version 1.0, Thu May 17 23:27:22 EDT 2001
This is a very simple Mandelbrot generator. I wrote it on a whim one
afternoon because I'd always wanted to write one, and I wanted to play
with OCaml. It simply generates a Mandelbrot according to some
parameters that you supply.
There is a lot that it doesn't do that many other generators do:
On the positive side,
- There's no speed optimization
- You can't save pictures, other than by taking a screen shot
- There's no GUI, so you can't zoom in or out
- It's written in OCaml
- It's short, concise and easy to modify.
- It's easy to write your own coloring functions. See the
comments in the code for instructions on how to do this.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
PPC Linux binary: smg-1.0.tar.bz2
To build SMG, you need an OCaml
compiler. Then download SMG and unpack it with bzip2.
If you downloaded the source, you can compile it under Unix by typing
make. Now you're all ready -- just run it as shown below.
SMG has been tested with Obective Caml version 3.01 on LinuxPPC.
If you would like to send me your data point, please
Usage is as follows:
smg x_min x_max y_min y_max width height iterations
smg -2 1 -1.5 1.5 512 384 25
The program generates the fractal, then prints out processor usage
statistics, waits until you press return, and quits.
smg -0.4 0.2 -1. -0.7 300 200 30
0.png (397 KB)
1.png (450 KB)
2.png (663 KB)
3.png (35 KB)