[Edu-sig] re: Steps for making a Fractal with Python

Arthur_Siegel@rsmi.com Arthur_Siegel@rsmi.com
Mon, 9 Jul 2001 11:01:56 -0500


Kirby writes -

>Steps to get a fractal (Mandelbrot) with Python:
<snip>

You might also look at some demo code that ships with
PyOpenGL:

>From the source header (demos\dek\MandelImage.py)

#!/usr/bin/env python
## This isn't really a PyOpenGL demo, but it's a nice
## example of how Numeric, Tkinter, and PIL can be used 
## together to create all sorts of images.
## In this case, it's the Mandelbrot set.
## i used the Numerical python text example, but modified it to
## work with PIL

PyOpenGL, BTW, is getting better and better.  Version2.0 which is out in 
beta,  will be a pretty complete SWIG of the entire API and the major 
extensioins. And great care seems to be being paid to 
distribution\install issues.  On Windows, at least,
the no brainer install works great. 

Recommended fun for all ages.

ART