Skip to content
The Scroll Art Museum

Math Function

Al Sweigart, 2024. Bitmap patterns based on Cartesian coordinate inputs to a math function.

"Math Function" is a highly configurable, deterministic piece that paints a bitmap based on the output of a mathematical function given the X and Y coordinates as inputs. Sweigart's blog post, "Algorithmic Art with the BitFieldDraw Module" features the output of several functions. The function featured here is (x ^ y) % 5 . This blog post was based on ideas from Martin Kleppe's social media posts, which were covered in a Metafilter post.

Bit Art Bot by https://freeradical.zone/@suetanvil has a collection of similar images and was also based on the same source.

Python source code

Customize
Settings