Jonathan. Frech’s WebBlog

Menger Sponge (#49)

Jonathan Frech

Normally, the Menger Sponge is a three-di­men­sion­al cuboid. This program works in a two-di­men­sion­al space, so it on­ly shows one side of the sponge.
Because a computer has its capacities, I capped the maximum square count to 10000. After that maximum, the face will not be com­plete.

Controls

Source code: menger-sponge.py