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
Metadata
Release files for fractalizer-haongo138 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fractalizer_haongo138-0.0.1.tar.gz | 3.0 kB | Without provenance | Details for fractalizer_haongo138-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fractalizer_haongo138-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for fractalizer_haongo138-0.0.1-py3-none-any.whl |
Total release size: 6.7 kB
Release files / fractalizer_haongo138-0.0.1.tar.gz
| Download URL | fractalizer_haongo138-0.0.1.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
223d4b5f43a8806db6f9aa069cf98648527d40c6ebc20691878087ce2af9620d
|
|
BLAKE2b-256 checksum How to use checksums |
59b1527998ac1a8357d5cf909d1c8167615c4617ab1ec6b44ef60b36dedc6b63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / fractalizer_haongo138-0.0.1-py3-none-any.whl
| Download URL | fractalizer_haongo138-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
280fcb74e5cbfbe9ac13a370fb148f08466f6b6adfd4f7b72da78f4dce6352d2
|
|
BLAKE2b-256 checksum How to use checksums |
5217ef550e020f76625053b3e92f7bf63e7700cd1f1ed54c40be9c58ea9501ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for fractalizer-haongo138 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.