Tectractys.com - Cool Tech & Articles, Interesting Gadgets, News & Opinion, Home of the Market Globe©! Tectractys.com - Tech & Gadgets Review Site

Tectractys.com
Tagged Topic Viewer
Topics: hacks




Alien Art Drawn With Surprisingly Simple Math

Programmer [aemkei] Tweeted the formula (x ^ y) % 9 alongside code for more "alien art". But how can a formula as simple as (x ^ y) % 9 result in a complex design? The combination of Bitwise XOR (^) and Modulo (%) generate a repeating pattern that's still complex enough to satisfy the eye, and it's ok if that doesn't sound like an explanation.

Nov 22, 2021 by Michael Shaub
Tech Blogs



Go to Top