Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 911 Bytes

samples.rst

File metadata and controls

30 lines (20 loc) · 911 Bytes

Samples

Mandelbrot

Visualising the Mandelbrot fractal with asq. This is a direct translation of Jon Skeet's original LINQ Mandelbrot <http://msmvps.com/blogs/jon_skeet/arc hive/2008/02/26/visualising-the-mandelbrot-set-with-linq-yet-again.aspx> from LINQ in C# to asq in Python. The sample requires the Python Imaging Library and so at the time of writing only works with Python 2.

This example can be found in the source distribution of asq under examples/mandelbrot.py.

../../examples/mandelbrot.py

This examples requires the Python Imaging Library (PIL) to be installed. If you do not have PIL installed, you can install it with:

$ pip install PIL

This example can be be run with:

$ python examples/mandelbrot.py

which produces

image