The Scroll Art Museum

Scroll art lets beginner programmers turn loops and print() into animated ASCII art.

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

Math Function (x & y) & (x ^ y) % 19

Math Function ((x | y) % 7)