Skip to main content

Generate and display various fractals

Project description

Fractal Generator

This is a Python package that allows you to generate and display various fractals, including the Mandelbrot set and Julia set.

Features

  • Generate different fractals by specifying the formula and parameters.
  • Visualize the fractals using matplotlib with customizable colormaps.
  • Save generated images as PNG files (optional).

Installation

Install the package using pip:

pip install fractalizer

Usage

import fractalizer

fractal_type = "mandelbrot"  # Or "julia"
c = complex(-0.5, 0.0)  # For Julia set, specify the complex number 'c'
max_iter = 256

# Additional parameters (optional):
x_min, x_max = -2.5, 1.5
y_min, y_max = -2.0, 2.0
width, height = 1200, 1200
colormap = "hot"

data = fractalizer.generate(fractal_type, c, max_iter, x_min, x_max, y_min, y_max, width, height, colormap)

# Display the fractal
fractalizer.display(data)

# Save the fractal as an image (optional)
fractalizer.save_image(data, "fractal.png")

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

fractalizer_haongo138-0.0.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fractalizer_haongo138-0.0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file fractalizer_haongo138-0.0.1.tar.gz.

File metadata

  • Download URL: fractalizer_haongo138-0.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.31.0 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.16 CPython/3.10.12

File hashes

Hashes for fractalizer_haongo138-0.0.1.tar.gz
Algorithm Hash digest
SHA256 223d4b5f43a8806db6f9aa069cf98648527d40c6ebc20691878087ce2af9620d
MD5 d81cc28ef7c20972e5352872f0b04aa4
BLAKE2b-256 59b1527998ac1a8357d5cf909d1c8167615c4617ab1ec6b44ef60b36dedc6b63

See more details on using hashes here.

File details

Details for the file fractalizer_haongo138-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: fractalizer_haongo138-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.31.0 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.16 CPython/3.10.12

File hashes

Hashes for fractalizer_haongo138-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 280fcb74e5cbfbe9ac13a370fb148f08466f6b6adfd4f7b72da78f4dce6352d2
MD5 40398be3739878dd0205db711399d650
BLAKE2b-256 5217ef550e020f76625053b3e92f7bf63e7700cd1f1ed54c40be9c58ea9501ff

See more details on using hashes here.

Supported by

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