Math Function
Math Function (x ^ y) % 5 VIEW FULLSCREEN
Math Function (x & y) & (x ^ y) % 19 VIEW FULLSCREEN
Math Function ((x | y) % 7) VIEW FULLSCREEN
"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. Al Sweigart has a blog post, "Algorithmic Art with the BitFieldDraw Module" that 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 this Metafilter post.
Bit Art Bot by https://freeradical.zone/@suetanvil has a collection of similar images and was also based on the same source.
Links
Math Function (x ^ y) % 5
- Python source code
- TypeScript source code (compiles to Node JavaScript)
- JavaScript source code in JSFiddle
Math Function (x & y) & (x ^ y) % 19
- Python source code
- TypeScript source code (compiles to Node JavaScript)
- JavaScript source code in JSFiddle
Math Function ((x | y) % 7)