PyMandel


NamePyMandel JSON
Version 1.0.7 PyPI version JSON
download
home_pagehttps://github.com/semuconsulting/PyMandel
SummaryPyMandel Fractal Generator Application
upload_time2022-12-17 11:53:01
maintainer
docs_urlNone
authorsemuadmin
requires_python
licenseBSD 3-Clause 'Modified' License
keywords pymandel fractal mandelbrot julia numba
VCS
bugtrack_url
requirements numba numpy Pillow
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # PyMandel

PyMandel is a graphical Mandelbrot and Julia Set rendering application written entirely in Python 3 and tkinter 8.6, with metadata import/export, basic animation functionality and performance enhancement via [Numba](http://numba.pydata.org/) JIT compilation, parallelisation and caching.

![MacOS screenshot](/images/burning_julia.png)

The application plots fractals in an expandable window and allows the user to save the image as a .png file. It automatically saves the metadata (settings) associated with an image and provides a facility to import that metadata at a later date to reproduce it. It supports popular variants such as 'Burning Ship' and 'Tricorn'.

![image0](/images/image0.png)
![image1](/images/image1.png)
![image2](/images/image2.png)

![image3](/images/image3.png)
![image5](/images/image5.png)
![image6](/images/image6.png)

It also includes both GUI and command line facilities to automatically create sequences of 'deep zoom' or 'spinning Julia Set' images which can be converted into animated GIF files or short videos using external open source tools (e.g. GIMP or OpenShot).

### Current Status

![Status](https://img.shields.io/pypi/status/PyMandel)
![Release](https://img.shields.io/github/v/release/semuconsulting/PyMandel)
![Build](https://img.shields.io/github/actions/workflow/status/semuconsulting/PyMandel/main.yml?branch=master)
![Release Date](https://img.shields.io/github/release-date-pre/semuconsulting/PyMandel)
![Last Commit](https://img.shields.io/github/last-commit/semuconsulting/PyMandel)
![Contributors](https://img.shields.io/github/contributors/semuconsulting/PyMandel.svg)
![Open Issues](https://img.shields.io/github/issues-raw/semuconsulting/PyMandel)

Contributions welcome - please refer to [CONTRIBUTING.MD](https://github.com/semuconsulting/PyMandel/blob/master/CONTRIBUTING.md).

#### Animated Mandelbrot Zoom sequence

This 178 frame, 10 fps sequence was automatically generated using the `pymandelcli` command line utility and converted into an animated GIF file using GIMP. The entire sequence took about 50 seconds to render and save.

`pymandelcli filename="zoom" width=400 height=300 frames=178 zoom=0.75 zoominc=1.2 zxoffset=-0.743643887037158704752191506114774 zyoffset=0.131825904205311970493132056385139 theme="Colorcet_CET_C1"`

![Zoom Animation](/images/zoom.gif)

#### Animated Julia Spin sequences

These 400 frame, 20 fps sequences were automatically generated using the GUI's SPIN function and converted into animated GIF files using GIMP. The second sequence illustrates a Julia Set with exponent = 3.


![Spin Animation](/images/juliaspin.gif) ![Spin Animation Exponent = 3](/images/juliaspin_exp3.gif)

#### Sample Metadata

```
{"pymandel": {
    "filename": "C:/Users/myuser/Downloads/mandela.png", 
    "created": "Apr 08 2020 19:43:41 GMT Standard Time", 
    "settype": "Mandelbrot",
    "setvar": "Standard",
    "zoom": 7500000000.0,
    "zoominc": 1.2,
    "frames": 10,
    "escradius": 2,
    "exponent": 2,
    "maxiter": 20000, 
    "zxoffset": -0.7491649396736062, 
    "zyoffset": 0.071803172645556,
    "cxoffset": 0, 
    "cyoffset": 0, 
    "theme": "Colorcet_CET_C1",
    "shift": 0
    }
}
```

## <a name="installation">Installation</a>

In the following, `python` & `pip` refer to the Python 3 executables. You may need to type 
`python3` or `pip3`, depending on your particular environment. It is also recommended that 
the Python 3 scripts (bin) and site_packages directories are included in your PATH (*most standard Python installation packages should do this automatically*).

### Dependencies

PyMandel is compatible with Python >=3.7 <=3.10 (*as at December 2022, `numba` is not compatible with Python 3.11*).

On Windows and MacOS, pip, tkinter and the necessary imaging libraries are generally packaged with Python.  On some Linux distributions like Ubuntu 18+ and Raspberry Pi OS, they may need to be installed separately, e.g.:

```shell
sudo apt install python3-pip python3-tk python3-pil python3-pil.imagetk
```

If you're installing Python 3 from source, you may also need to install the tkinter development library (refer to http://wiki.python.org/moin/TkInter for further details):

```shell
sudo apt install tk-devel
```

### 1. Install using pip

![Python version](https://img.shields.io/pypi/pyversions/PyMandel.svg?style=flat)
[![PyPI version](https://img.shields.io/pypi/v/PyMandel.svg?style=flat)](https://pypi.org/project/PyMandel/)
![PyPI downloads](https://img.shields.io/pypi/dm/PyMandel.svg?style=flat)

The easiest way to install the latest version of PyMandel is via [pip](http://pypi.python.org/pypi/pip/):

```shell
python -m pip install --upgrade PyMandel
```

If required, `PyMandel` can also be installed into a virtual environment, e.g.

```shell
python -m pip install --user --upgrade virtualenv
python -m virtualenv env
source env/bin/activate (or env\Scripts\activate on Windows)
(env) python -m pip install --upgrade PyMandel
...
deactivate
```

To run the application, if the Python 3 scripts (bin) directory is in your PATH, simply type (all lowercase):
```shell
pymandel
```

If desired, you can add a shortcut to this command to your desktop or favourites menu.

Alternatively, if the Python 3 site_packages directory is in your PATH, you can type (all lowercase):
```shell
python -m pymandel
```

**NB:** if the Python 3 scripts (bin) or site_packages directories are *not* in your PATH, you will need
to add the fully-qualified path to `pymandel` in the commands above.

**Tip**: to find the site_packages location, type `pip show PyMandel` and look for the `Location:` entry in the response, e.g.

- Linux: `Location: /home/username/.local/lib/python3.10/site-packages`
- MacOS: `Location: /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages`
- Windows: `Location: c:\users\username\appdata\roaming\python\python310\lib\site-packages`

**Tip:** To create an application launcher for linux distributions like Ubuntu, create a text file named `pymandel.desktop` with the following content (*edited for your particular environment*) and copy this to the `/home/user/.local/share/applications` folder, e.g.

```
[Desktop Entry]
Type=Application
Terminal=false
Name=PyMandel
Icon=/home/user/.local/lib/python3.9/site-packages/pygpsclient/resources/pymandel.png
Exec=/home/user/.local/bin/pymandel
```

### 2. Manual installation

See [requirements.txt](requirements.txt).

The following Python libraries are required (these will be installed automatically if using pip to install PyMandel):

```shell
python -m pip install --upgrade numba numpy Pillow
```

To install PyMandel manually, download and unzip this repository and type:

```shell
python -m /path_to_folder/foldername/pymandel
```

e.g. if you downloaded and unzipped to a folder named `PyMandel-1.0.7`, type: 

```shell
python -m /path_to_folder/PyMandel-1.0.7/pymandel
```

### Performance Optimisations

The application makes use of [Numba](http://numba.pydata.org/) just in time (jit) compilation, caching and parallelisation techniques, in conjunction with Numpy image arrays, to dramatically improve calculation and rendering times relative to standard Python, particularly on multi-core CPUs. 

**NB:**

1. Numba is still officially in Beta.
1. Python 3.10 is not yet fully supported (*due to llvmlite compatibility issues*), and Python 3.6 only supports version <=0.53.1.
1. The very first time the program is used after installation, jit compilation and caching will delay the first plot by a couple of seconds, but thereafter the rendering should start instantly.

## How To Use

* Settings can be entered manually (or imported from a previously saved metadata file) to plot a fractal image using the specified parameters.

* Use the mouse wheel to zoom in and out at the current cursor location. There may be some lag at very high resolutions or where a substantial part of the image is within the set (i.e. black).

* Left-click, drag and release to zoom into a drawn rectangular area.

* Left-click momentarily to zoom in at the current cursor location by the Zoom Increment amount (e.g. a Zoom Increment of 10 will zoom in tenfold)

* Shift & Left-click to zoom out by the same amount.

* Right-clicking anywhere in the plot area will centre the image at that point using the currently specified zoom level.

* **NB:** Pressing Alt-L (left-hand Alt key) or Ctrl-L (left-hand Ctrl key) while left-clicking in Mandelbrot mode will automatically switch to Julia mode and plot the Julia Set corresponding to the cx, cy offset at the cursor location. Useful points of interest can be found anywhere around the perimeter of the Mandelbrot set.

* Pressing the Left &#9664; or Right &#9654; arrow keys in Julia mode will rotate the Julia Set clockwise or anti-clockwise about its origin (*the SPIN animation function does this automatically*).

* PLOT button - plot the image using current settings. 

* Cancel button - cancel the current plot operation.

* Reset button - reset the parameters to the default values.

* Save button - save the currently displayed image as a PNG file. You will be prompted for a directory on first use. A corresponding metadata json file will also be saved containing the parameters that were used to create the image, allowing it to be reproduced at a later date.

* File..Import Settings - import previously saved metadata. You will be prompted to select a json file to import. Some sample *.json files can be found in the [Images](https://github.com/semuconsulting/PyMandel/tree/master/images) folder

* Zoom button - automatically create and save a sequence of images at increasing zoom levels, which can be converted externally into an animation (e.g. GIF or short video).

* Spin button - in Julia mode only, automatically creates and saves a 360 degree 'spinning Julia Set' sequence. Increasing the number of frames will result in a slower but more detailed spin animation.

* Options..Hide/Show Status - toggles the Status Bar on or off.

* Options..Hide/Show Settings - toggles the Settings panel on or off.

* Help..How To - display how to use instructions.

* Help..About - display help screen with links to license and source code.

*Settings:*

* Set Type (Mode). Select from Mandelbrot or Julia.

* Set Variant. Select from Standard, Tricorn or BurningShip.

* Zoom level. The application currently uses standard 64-bit double precision and the maximum practical zoom level before floating-point errors cause pixelation is around 2 x 10<sup>13</sup> (20 million million).

* ZX axis offset in Real or 'Re' dimensional units (typically in the range -2.0 to 1.2).

* ZY axis offset in Imaginary or 'Im' dimensional units (typically in the range -1.2 to 1.2).

* CX axis offset of the Julia Set in Real or 'Re' dimensional units.

* CY axis offset of the Julia Set in Imaginary or 'Im' dimensional units.

* Max Iterations. Maximum number of iterations, which broadly equates to the fineness or resolution of the image. It will also affect the colour rendition in most themes. Higher zoom levels will typically require a higher number of iterations to produce a detailed image.

* Auto. If checked, maximum iterations will be automatically calculated according to the current zoom level.

* Escape Radius. The escape radius (defaults to 2, but higher values can produce more expansive color gradients).

* Exponent. The iteration exponent (normally 2 for the classic Mandelbrot, but higher exponents yield other radially symmetric forms at the cost of increased rendering time).

* Theme - a list of color rendering themes is provided. These are based on a variety of rendering algorithms, including cyclic colormap indexing; HSV derivations; banded RGB maps and simple grayscale. The code allows additional algorithms to be easily added.

* Theme Shift - this modifies the characteristics of certain themes, typically by shifting the hue along the spectrum or color map index. Its effect will depend on the specific rendering algorithm used.

* An image filename for saved images, metadata and animation frames.

* Frames. The number of animation frames to create.

* Zoom Increment. The zoom increment between frames (e.g. an increment of 1.5 means each successive frame is zoomed in 1.5x as much as the previous one; set Zoom Increment < 1 to zoom out). Used for left-click zooms and animations. For animations, the number of iterations is also automatically increased with the zoom level in accordance with a predefined algorithm.

## Command Line Utilities

### mandelcli.py

`pymandelcli` is a command line equivalent to the GUI's Animate function. If PyMandel has been installed using `pip` and the Python 3 scripts (bin) directory is in the user's PATH, it can be invoked thus:

```shell
pymandelcli width=480 height=480 frames=20
``` 
This will produce a sequence of 20 .png images. Pass `-h` or `-help` for a list of available parameters.

It can import settings from a previously saved metadata file using the import parameter e.g. `import=filename.json`.

In addition to producing animated sequences, the command line utility can be used to create single images at a much higher pixel resolution than would be available via the GUI application on a standard monitor, though render time may be significant.

** Suggestion ** Use the PyMandel GUI at moderate resolutions to explore fractals and find a location and configuration you like, save the image & metadata, and then use the `pymandelcli` command line utility to import the metadata and create a much higher resolution version of the same image e.g for desktop wallpaper, printing or sharing.

### make_colormap.py

`make_colormap` is a simple command line utility for generating PyMandel-compatible numpy RGB arrays from image files containing suitable color gradients (e.g. created using GIMP's gradient tool) or even photographs with interesting color palettes. If PyMandel has been installed using `pip` and the Python 3 scripts (bin) directory is in the user's PATH, it can be invoked thus:

```shell
make_colormap mapname=mymap input=image.png output=mymap_colormap.py levels=256
```

Pass `-h` or `-help` for a list of available parameters.

## License

![License](https://img.shields.io/github/license/semuconsulting/PyMandel.svg)

BSD 3-Clause License

Copyright (c) 2020, SEMU Consulting
All rights reserved.

The HoloViz [Colorcet color maps](https://github.com/holoviz/colorcet) library has been harvested for some of the color rendering themes. These color maps are released under a Creative Commons Attribution 4.0 International Public License (CC-BY) - see [Colorcet License Conditions](https://github.com/holoviz/colorcet/blob/master/LICENSE.txt) for details. ***NB:*** for convenience the selected Colorcet assets (256-depth cyclic color maps) were converted into numpy rgb arrays in colormaps.py and the library itself is not actually used at runtime.

## Author Information

semuadmin@semuconsulting.com

`PyMandel` is maintained entirely by volunteers. If you find it useful, a small donation would be greatly appreciated!

[![Donations](https://www.paypalobjects.com/en_GB/i/btn/btn_donate_LG.gif)](https://www.paypal.com/donate/?business=UL24WUA4XHNRY&no_recurring=1&item_name=Any+donations%2C+however+small%2C+will+help+further+the+development+of+these+projects.+Many+thanks%21&currency_code=GBP)


You may also like this - an online [JavaScript version of a Fractal Generator](https://github.com/Algol-Variables/fractal-generator) with similar functionality:

https://www.algolvariables.com/fractals/

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/semuconsulting/PyMandel",
    "name": "PyMandel",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "PyMandel fractal mandelbrot julia numba",
    "author": "semuadmin",
    "author_email": "semuadmin@semuconsulting.com",
    "download_url": "https://files.pythonhosted.org/packages/c9/fb/b2d95c67016f10f4588f9aa3ee029e040e493ed69d0238d633914a7f17a3/PyMandel-1.0.7.tar.gz",
    "platform": "Windows",
    "description": "# PyMandel\n\nPyMandel is a graphical Mandelbrot and Julia Set rendering application written entirely in Python 3 and tkinter 8.6, with metadata import/export, basic animation functionality and performance enhancement via [Numba](http://numba.pydata.org/) JIT compilation, parallelisation and caching.\n\n![MacOS screenshot](/images/burning_julia.png)\n\nThe application plots fractals in an expandable window and allows the user to save the image as a .png file. It automatically saves the metadata (settings) associated with an image and provides a facility to import that metadata at a later date to reproduce it. It supports popular variants such as 'Burning Ship' and 'Tricorn'.\n\n![image0](/images/image0.png)\n![image1](/images/image1.png)\n![image2](/images/image2.png)\n\n![image3](/images/image3.png)\n![image5](/images/image5.png)\n![image6](/images/image6.png)\n\nIt also includes both GUI and command line facilities to automatically create sequences of 'deep zoom' or 'spinning Julia Set' images which can be converted into animated GIF files or short videos using external open source tools (e.g. GIMP or OpenShot).\n\n### Current Status\n\n![Status](https://img.shields.io/pypi/status/PyMandel)\n![Release](https://img.shields.io/github/v/release/semuconsulting/PyMandel)\n![Build](https://img.shields.io/github/actions/workflow/status/semuconsulting/PyMandel/main.yml?branch=master)\n![Release Date](https://img.shields.io/github/release-date-pre/semuconsulting/PyMandel)\n![Last Commit](https://img.shields.io/github/last-commit/semuconsulting/PyMandel)\n![Contributors](https://img.shields.io/github/contributors/semuconsulting/PyMandel.svg)\n![Open Issues](https://img.shields.io/github/issues-raw/semuconsulting/PyMandel)\n\nContributions welcome - please refer to [CONTRIBUTING.MD](https://github.com/semuconsulting/PyMandel/blob/master/CONTRIBUTING.md).\n\n#### Animated Mandelbrot Zoom sequence\n\nThis 178 frame, 10 fps sequence was automatically generated using the `pymandelcli` command line utility and converted into an animated GIF file using GIMP. The entire sequence took about 50 seconds to render and save.\n\n`pymandelcli filename=\"zoom\" width=400 height=300 frames=178 zoom=0.75 zoominc=1.2 zxoffset=-0.743643887037158704752191506114774 zyoffset=0.131825904205311970493132056385139 theme=\"Colorcet_CET_C1\"`\n\n![Zoom Animation](/images/zoom.gif)\n\n#### Animated Julia Spin sequences\n\nThese 400 frame, 20 fps sequences were automatically generated using the GUI's SPIN function and converted into animated GIF files using GIMP. The second sequence illustrates a Julia Set with exponent = 3.\n\n\n![Spin Animation](/images/juliaspin.gif) ![Spin Animation Exponent = 3](/images/juliaspin_exp3.gif)\n\n#### Sample Metadata\n\n```\n{\"pymandel\": {\n    \"filename\": \"C:/Users/myuser/Downloads/mandela.png\", \n    \"created\": \"Apr 08 2020 19:43:41 GMT Standard Time\", \n    \"settype\": \"Mandelbrot\",\n    \"setvar\": \"Standard\",\n    \"zoom\": 7500000000.0,\n    \"zoominc\": 1.2,\n    \"frames\": 10,\n    \"escradius\": 2,\n    \"exponent\": 2,\n    \"maxiter\": 20000, \n    \"zxoffset\": -0.7491649396736062, \n    \"zyoffset\": 0.071803172645556,\n    \"cxoffset\": 0, \n    \"cyoffset\": 0, \n    \"theme\": \"Colorcet_CET_C1\",\n    \"shift\": 0\n    }\n}\n```\n\n## <a name=\"installation\">Installation</a>\n\nIn the following, `python` & `pip` refer to the Python 3 executables. You may need to type \n`python3` or `pip3`, depending on your particular environment. It is also recommended that \nthe Python 3 scripts (bin) and site_packages directories are included in your PATH (*most standard Python installation packages should do this automatically*).\n\n### Dependencies\n\nPyMandel is compatible with Python >=3.7 <=3.10 (*as at December 2022, `numba` is not compatible with Python 3.11*).\n\nOn Windows and MacOS, pip, tkinter and the necessary imaging libraries are generally packaged with Python.  On some Linux distributions like Ubuntu 18+ and Raspberry Pi OS, they may need to be installed separately, e.g.:\n\n```shell\nsudo apt install python3-pip python3-tk python3-pil python3-pil.imagetk\n```\n\nIf you're installing Python 3 from source, you may also need to install the tkinter development library (refer to http://wiki.python.org/moin/TkInter for further details):\n\n```shell\nsudo apt install tk-devel\n```\n\n### 1. Install using pip\n\n![Python version](https://img.shields.io/pypi/pyversions/PyMandel.svg?style=flat)\n[![PyPI version](https://img.shields.io/pypi/v/PyMandel.svg?style=flat)](https://pypi.org/project/PyMandel/)\n![PyPI downloads](https://img.shields.io/pypi/dm/PyMandel.svg?style=flat)\n\nThe easiest way to install the latest version of PyMandel is via [pip](http://pypi.python.org/pypi/pip/):\n\n```shell\npython -m pip install --upgrade PyMandel\n```\n\nIf required, `PyMandel` can also be installed into a virtual environment, e.g.\n\n```shell\npython -m pip install --user --upgrade virtualenv\npython -m virtualenv env\nsource env/bin/activate (or env\\Scripts\\activate on Windows)\n(env) python -m pip install --upgrade PyMandel\n...\ndeactivate\n```\n\nTo run the application, if the Python 3 scripts (bin) directory is in your PATH, simply type (all lowercase):\n```shell\npymandel\n```\n\nIf desired, you can add a shortcut to this command to your desktop or favourites menu.\n\nAlternatively, if the Python 3 site_packages directory is in your PATH, you can type (all lowercase):\n```shell\npython -m pymandel\n```\n\n**NB:** if the Python 3 scripts (bin) or site_packages directories are *not* in your PATH, you will need\nto add the fully-qualified path to `pymandel` in the commands above.\n\n**Tip**: to find the site_packages location, type `pip show PyMandel` and look for the `Location:` entry in the response, e.g.\n\n- Linux: `Location: /home/username/.local/lib/python3.10/site-packages`\n- MacOS: `Location: /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages`\n- Windows: `Location: c:\\users\\username\\appdata\\roaming\\python\\python310\\lib\\site-packages`\n\n**Tip:** To create an application launcher for linux distributions like Ubuntu, create a text file named `pymandel.desktop` with the following content (*edited for your particular environment*) and copy this to the `/home/user/.local/share/applications` folder, e.g.\n\n```\n[Desktop Entry]\nType=Application\nTerminal=false\nName=PyMandel\nIcon=/home/user/.local/lib/python3.9/site-packages/pygpsclient/resources/pymandel.png\nExec=/home/user/.local/bin/pymandel\n```\n\n### 2. Manual installation\n\nSee [requirements.txt](requirements.txt).\n\nThe following Python libraries are required (these will be installed automatically if using pip to install PyMandel):\n\n```shell\npython -m pip install --upgrade numba numpy Pillow\n```\n\nTo install PyMandel manually, download and unzip this repository and type:\n\n```shell\npython -m /path_to_folder/foldername/pymandel\n```\n\ne.g. if you downloaded and unzipped to a folder named `PyMandel-1.0.7`, type: \n\n```shell\npython -m /path_to_folder/PyMandel-1.0.7/pymandel\n```\n\n### Performance Optimisations\n\nThe application makes use of [Numba](http://numba.pydata.org/) just in time (jit) compilation, caching and parallelisation techniques, in conjunction with Numpy image arrays, to dramatically improve calculation and rendering times relative to standard Python, particularly on multi-core CPUs. \n\n**NB:**\n\n1. Numba is still officially in Beta.\n1. Python 3.10 is not yet fully supported (*due to llvmlite compatibility issues*), and Python 3.6 only supports version <=0.53.1.\n1. The very first time the program is used after installation, jit compilation and caching will delay the first plot by a couple of seconds, but thereafter the rendering should start instantly.\n\n## How To Use\n\n* Settings can be entered manually (or imported from a previously saved metadata file) to plot a fractal image using the specified parameters.\n\n* Use the mouse wheel to zoom in and out at the current cursor location. There may be some lag at very high resolutions or where a substantial part of the image is within the set (i.e. black).\n\n* Left-click, drag and release to zoom into a drawn rectangular area.\n\n* Left-click momentarily to zoom in at the current cursor location by the Zoom Increment amount (e.g. a Zoom Increment of 10 will zoom in tenfold)\n\n* Shift & Left-click to zoom out by the same amount.\n\n* Right-clicking anywhere in the plot area will centre the image at that point using the currently specified zoom level.\n\n* **NB:** Pressing Alt-L (left-hand Alt key) or Ctrl-L (left-hand Ctrl key) while left-clicking in Mandelbrot mode will automatically switch to Julia mode and plot the Julia Set corresponding to the cx, cy offset at the cursor location. Useful points of interest can be found anywhere around the perimeter of the Mandelbrot set.\n\n* Pressing the Left &#9664; or Right &#9654; arrow keys in Julia mode will rotate the Julia Set clockwise or anti-clockwise about its origin (*the SPIN animation function does this automatically*).\n\n* PLOT button - plot the image using current settings. \n\n* Cancel button - cancel the current plot operation.\n\n* Reset button - reset the parameters to the default values.\n\n* Save button - save the currently displayed image as a PNG file. You will be prompted for a directory on first use. A corresponding metadata json file will also be saved containing the parameters that were used to create the image, allowing it to be reproduced at a later date.\n\n* File..Import Settings - import previously saved metadata. You will be prompted to select a json file to import. Some sample *.json files can be found in the [Images](https://github.com/semuconsulting/PyMandel/tree/master/images) folder\n\n* Zoom button - automatically create and save a sequence of images at increasing zoom levels, which can be converted externally into an animation (e.g. GIF or short video).\n\n* Spin button - in Julia mode only, automatically creates and saves a 360 degree 'spinning Julia Set' sequence. Increasing the number of frames will result in a slower but more detailed spin animation.\n\n* Options..Hide/Show Status - toggles the Status Bar on or off.\n\n* Options..Hide/Show Settings - toggles the Settings panel on or off.\n\n* Help..How To - display how to use instructions.\n\n* Help..About - display help screen with links to license and source code.\n\n*Settings:*\n\n* Set Type (Mode). Select from Mandelbrot or Julia.\n\n* Set Variant. Select from Standard, Tricorn or BurningShip.\n\n* Zoom level. The application currently uses standard 64-bit double precision and the maximum practical zoom level before floating-point errors cause pixelation is around 2 x 10<sup>13</sup> (20 million million).\n\n* ZX axis offset in Real or 'Re' dimensional units (typically in the range -2.0 to 1.2).\n\n* ZY axis offset in Imaginary or 'Im' dimensional units (typically in the range -1.2 to 1.2).\n\n* CX axis offset of the Julia Set in Real or 'Re' dimensional units.\n\n* CY axis offset of the Julia Set in Imaginary or 'Im' dimensional units.\n\n* Max Iterations. Maximum number of iterations, which broadly equates to the fineness or resolution of the image. It will also affect the colour rendition in most themes. Higher zoom levels will typically require a higher number of iterations to produce a detailed image.\n\n* Auto. If checked, maximum iterations will be automatically calculated according to the current zoom level.\n\n* Escape Radius. The escape radius (defaults to 2, but higher values can produce more expansive color gradients).\n\n* Exponent. The iteration exponent (normally 2 for the classic Mandelbrot, but higher exponents yield other radially symmetric forms at the cost of increased rendering time).\n\n* Theme - a list of color rendering themes is provided. These are based on a variety of rendering algorithms, including cyclic colormap indexing; HSV derivations; banded RGB maps and simple grayscale. The code allows additional algorithms to be easily added.\n\n* Theme Shift - this modifies the characteristics of certain themes, typically by shifting the hue along the spectrum or color map index. Its effect will depend on the specific rendering algorithm used.\n\n* An image filename for saved images, metadata and animation frames.\n\n* Frames. The number of animation frames to create.\n\n* Zoom Increment. The zoom increment between frames (e.g. an increment of 1.5 means each successive frame is zoomed in 1.5x as much as the previous one; set Zoom Increment < 1 to zoom out). Used for left-click zooms and animations. For animations, the number of iterations is also automatically increased with the zoom level in accordance with a predefined algorithm.\n\n## Command Line Utilities\n\n### mandelcli.py\n\n`pymandelcli` is a command line equivalent to the GUI's Animate function. If PyMandel has been installed using `pip` and the Python 3 scripts (bin) directory is in the user's PATH, it can be invoked thus:\n\n```shell\npymandelcli width=480 height=480 frames=20\n``` \nThis will produce a sequence of 20 .png images. Pass `-h` or `-help` for a list of available parameters.\n\nIt can import settings from a previously saved metadata file using the import parameter e.g. `import=filename.json`.\n\nIn addition to producing animated sequences, the command line utility can be used to create single images at a much higher pixel resolution than would be available via the GUI application on a standard monitor, though render time may be significant.\n\n** Suggestion ** Use the PyMandel GUI at moderate resolutions to explore fractals and find a location and configuration you like, save the image & metadata, and then use the `pymandelcli` command line utility to import the metadata and create a much higher resolution version of the same image e.g for desktop wallpaper, printing or sharing.\n\n### make_colormap.py\n\n`make_colormap` is a simple command line utility for generating PyMandel-compatible numpy RGB arrays from image files containing suitable color gradients (e.g. created using GIMP's gradient tool) or even photographs with interesting color palettes. If PyMandel has been installed using `pip` and the Python 3 scripts (bin) directory is in the user's PATH, it can be invoked thus:\n\n```shell\nmake_colormap mapname=mymap input=image.png output=mymap_colormap.py levels=256\n```\n\nPass `-h` or `-help` for a list of available parameters.\n\n## License\n\n![License](https://img.shields.io/github/license/semuconsulting/PyMandel.svg)\n\nBSD 3-Clause License\n\nCopyright (c) 2020, SEMU Consulting\nAll rights reserved.\n\nThe HoloViz [Colorcet color maps](https://github.com/holoviz/colorcet) library has been harvested for some of the color rendering themes. These color maps are released under a Creative Commons Attribution 4.0 International Public License (CC-BY) - see [Colorcet License Conditions](https://github.com/holoviz/colorcet/blob/master/LICENSE.txt) for details. ***NB:*** for convenience the selected Colorcet assets (256-depth cyclic color maps) were converted into numpy rgb arrays in colormaps.py and the library itself is not actually used at runtime.\n\n## Author Information\n\nsemuadmin@semuconsulting.com\n\n`PyMandel` is maintained entirely by volunteers. If you find it useful, a small donation would be greatly appreciated!\n\n[![Donations](https://www.paypalobjects.com/en_GB/i/btn/btn_donate_LG.gif)](https://www.paypal.com/donate/?business=UL24WUA4XHNRY&no_recurring=1&item_name=Any+donations%2C+however+small%2C+will+help+further+the+development+of+these+projects.+Many+thanks%21&currency_code=GBP)\n\n\nYou may also like this - an online [JavaScript version of a Fractal Generator](https://github.com/Algol-Variables/fractal-generator) with similar functionality:\n\nhttps://www.algolvariables.com/fractals/\n",
    "bugtrack_url": null,
    "license": "BSD 3-Clause 'Modified' License",
    "summary": "PyMandel Fractal Generator Application",
    "version": "1.0.7",
    "split_keywords": [
        "pymandel",
        "fractal",
        "mandelbrot",
        "julia",
        "numba"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "bdbf979003a5eed76055f1ac02d8f645",
                "sha256": "0de736cdbae393f29189437ae095aa94e5cc5fdc6321e79a21f30ed5cd11b747"
            },
            "downloads": -1,
            "filename": "PyMandel-1.0.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bdbf979003a5eed76055f1ac02d8f645",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 213302,
            "upload_time": "2022-12-17T11:52:59",
            "upload_time_iso_8601": "2022-12-17T11:52:59.439817Z",
            "url": "https://files.pythonhosted.org/packages/a7/a2/3ded49d0e0b2233b4c1ffc91d930e880abb2806e0575e2e12eae9a8e4028/PyMandel-1.0.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "e9282788edac1204a1ebfd325ef4d3d4",
                "sha256": "993ce61bb2af0e89bb750d2ac7c22dd17504afd592c11f03517aae789b9ae5ae"
            },
            "downloads": -1,
            "filename": "PyMandel-1.0.7.tar.gz",
            "has_sig": false,
            "md5_digest": "e9282788edac1204a1ebfd325ef4d3d4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 207337,
            "upload_time": "2022-12-17T11:53:01",
            "upload_time_iso_8601": "2022-12-17T11:53:01.242629Z",
            "url": "https://files.pythonhosted.org/packages/c9/fb/b2d95c67016f10f4588f9aa3ee029e040e493ed69d0238d633914a7f17a3/PyMandel-1.0.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-17 11:53:01",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "semuconsulting",
    "github_project": "PyMandel",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "numba",
            "specs": [
                [
                    ">=",
                    "0.56.4"
                ]
            ]
        },
        {
            "name": "numpy",
            "specs": [
                [
                    ">=",
                    "1.21.6"
                ]
            ]
        },
        {
            "name": "Pillow",
            "specs": [
                [
                    ">=",
                    "9.3.0"
                ]
            ]
        }
    ],
    "lcname": "pymandel"
}
        
Elapsed time: 0.02667s