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.
The script is fully written for the Jupyter Notebook environment. You can find the notebook in the notebooks/
directory.
If you want to run or customize the script, you can install the required dependencies. All dependencies are managed using the uv
package manager. It only includes very common Python packages: NumPy
and matplotlib
. NumPy is used for calculating the fractal design, while matplotlib is used to visualize it.
- 📖 Fractal curve (Wikipedia) — background about fractals in mathematics.
- 🎥 Fractals are typically not self-similar (YouTube) — 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.