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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for fractalizer_haongo138-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 223d4b5f43a8806db6f9aa069cf98648527d40c6ebc20691878087ce2af9620d |
|
MD5 | d81cc28ef7c20972e5352872f0b04aa4 |
|
BLAKE2b-256 | 59b1527998ac1a8357d5cf909d1c8167615c4617ab1ec6b44ef60b36dedc6b63 |
Close
Hashes for fractalizer_haongo138-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 280fcb74e5cbfbe9ac13a370fb148f08466f6b6adfd4f7b72da78f4dce6352d2 |
|
MD5 | 40398be3739878dd0205db711399d650 |
|
BLAKE2b-256 | 5217ef550e020f76625053b3e92f7bf63e7700cd1f1ed54c40be9c58ea9501ff |