Skip to main content

A fullscreen program that displays an animated, twisting tessellation of whirls.

Project description

A fullscreen program that displays an animated, twisting tessellation of whirls. Click to show or hide a panel of sliders to adjust the whirls. Press Esc to exit.

What is a Whirl?

Begin with an arbitrary polygon. Construct a nested polygon by joining points that are a fractional distance along each edge. Repeat this process ad infinitum.

The vertices of the whirl form a logarithmic spiral, and they approximate a pursuit curve. The center of the spiral is the centroid of the polygon.

If the constructed polygon’s vertices lie on midpoints of the base polygon, then it’s called a midpoint polygon. If the constructed polygon has an even number of sides, then it’s called a derived polygon.


This program was developed against:

  • Python 3.5

  • NumPy 1.10

  • SciPy 0.17

  • Matplotlib 1.5

  • Pygame 1.9

  • PGU 0.18

Older versions may or may not work.


These are minimal instructions to install and run this program on Windows 64 bit, including all dependencies. These instructions will not interfere with any other installed versions of Python and do not affect your PATH environment variable.

  1. Download WinPython-64bit- and install to C:\py\WinPython-64bit-

  2. Download pygame-1.9.2a0-cp35-none-win_amd64.whl and

  3. Open Command Prompt and run the following:

    C:\py\WinPython-64bit-\python-3.5.1.amd64\python -m pip install C:\Users\<user>\Downloads\pygame-1.9.2a0-cp35-none-win_amd64.whl
    C:\py\WinPython-64bit-\python-3.5.1.amd64\python -m pip install C:\Users\<user>\Downloads\
    C:\py\WinPython-64bit-\python-3.5.1.amd64\python -m pip install whirls
    C:\py\WinPython-64bit-\python-3.5.1.amd64\python -m whirls


DLL load failed

ImportError: DLL load failed: The specified module could not be found.

If you installed Pygame for Python 3.5 from the link provided, then you need to install the Microsoft Visual C++ 2015 Redistributable.


If you get an error like this:

  File "C:\py\WinPython-32bit-\python-3.5.1\lib\site-packages\pgu\gui\", line 57
    except StyleError,e:
SyntaxError: invalid syntax

Then change that line to read:

except StyleError as e:

That file does not belong to this project.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution (24.3 kB view hashes)

Uploaded source

Built Distribution

whirls-1.2-py3-none-any.whl (9.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page