Algorithmic Mathematical Art (2004)
xahlee.info
xahlee.info
It is a beautiful algorithm using a simple two-step procedure. The first step involves taking a random gray-valued mask image and applying the path-finding procedure of the Easy Path Wavelet Transform (EPWT) to it. This path-finding technique is greedy and aims to obtain a succession of vectorized pixel values with minimal variation. It does this by always picking the next point (among the available neighbors) that yields the minimum absolute value difference in pixel values. This approach helps it select regions with similar pixel values before making a jump to pixels with significantly lighter or darker regions.
Once a random path of say length N is obtained, a random color map (think of one from matplotlib or seaborn) is applied, with each point k in the path mapped to the k/N point in the color map. Et voilà! A gorgeous image appears.
I've been using this as cover art for my personalized radio station software (https://github.com/pncnmnp/phoenix10.1).
Thanks!
It seems he did not share any source code, though.
┬─┬ ┬─┬──────────
└─┤ │ │ ──┬──────
│ │ │ ┬─┼──────
│ │ │ └─┤ ┬─┬──
│ │ │ │ ┼─┼─┬
│ │ │ │ │ ├─┘
│ │ │ │ ├─┘
│ │ │ ├─┘
│ │ ├───┘
│ ├─┘
└─┘
[1] https://tromp.github.io/cl/diagrams.htmlHe maintains what for me is a very nostalgic old-internet webpage at https://new.math.uiuc.edu. There are links at the bottom to web versions of his computer animations.
Edit: If you do click on the animations, make sure to try the different commands like "morph" and "skin".
https://drive.google.com/file/d/1H6rSZ6-jx-8rqLXowzevJ1e3FD-...
This wasn't rocket science (at least my part). I cringe now to see the pixelated effects in this "algorithmic art". Unless I'm missing the point, and this retro effect is deliberate?