An open API service indexing awesome lists of open source software.

https://github.com/farrelad/fractals-design-python

Generate beautiful fractal designs with Python and visualize them in Jupyter Notebook
https://github.com/farrelad/fractals-design-python

awesome-python design fractals math mathematics python

Last synced: 4 months ago
JSON representation

Generate beautiful fractal designs with Python and visualize them in Jupyter Notebook

Awesome Lists containing this project

README

          

# Fractal Design with Python

This project shows how to create fractal designs using a Python script. Fractal designs look simple but are fascinating because they use the same component repeatedly to build intricate and beautiful patterns. The concept is very similar to recursive functions in programming — if you go deeper into the layers, you'll see the same pattern repeating, just like in recursion. You can learn more about fractal curves [here](https://en.wikipedia.org/wiki/Fractal_curve).

The script is fully written for the Jupyter Notebook environment. You can find the notebook in the [`notebooks/`](notebooks/) directory.

If you want to run or customize the script, you can install the required dependencies. All dependencies are managed using the [`uv`](https://docs.astral.sh/uv/) package manager. It only includes very common Python packages: [`NumPy`](https://numpy.org/) and [`matplotlib`](https://matplotlib.org/). **NumPy** is used for calculating the fractal design, while **matplotlib** is used to visualize it.

## Additional Resources

- 📖 [Fractal curve (Wikipedia)](https://en.wikipedia.org/wiki/Fractal_curve) — background about fractals in mathematics.
- 🎥 [Fractals are typically not self-similar (YouTube)](https://youtu.be/gB9n2gHsHN4?si=ChlSm1eEdBunXALv) — a deeper look into the idea of fractals, showing that they are not always the simple “self-similar recursive shapes” we usually imagine. The video explains this concept in an accessible way without going too heavy into formal math.