This repo holds the source code for a digital art demo I created and deployed as a single-page web application. To use the app to make your own art, click here. Read on to learn more about the idea and its implementation.
This is an drawing app which lets you draw a multibrot-like fractal in any shape that you choose! The video below shows an example. I tried to evoke a saguaro cactus. A few more example fractalinations are at the bottom of this README.
cactus480p.mov
Your browser runs the fractalinator app using the four files in the /docs
folder. Three of these are the usual index.html
, with a CSS stylesheet, and a javascript to handle the interactivity. The fourth is a wheel for the fractalinator
Python package, built from source code in this repository. This package controls the fractal image, performing numerical computation which would be slow and cumbersome in Javascript. Python methods are called from Javascript using pyodide, a WASM Python interpreter.
You can also install the fractalinator
package to your Python environment using
pip install git+https://github.com/fcseidl/fractalinator/
You can run the demo.py
module to open a fractalinator canvas in a Tkinter widget, outside the browser.
Yes, yes it is.
The waves are achieved by setting bailout_radius=2.0
.
Here, I drew in the negative space rather than the positive.
From 10/24. Happy Halloween!
Here's the cactus drawing from the video, in higher resolution.
Go Blue!