Making Art with QR Codes, and the Fine Line between Inspiration and Idea Theft
Pangram verdict · v3.3
We believe this text is mainly human-written, with some AI content.
AI likelihood · overall
HumanArticle text · 732 words · 2 segments analyzed
There's, without a doubt, a big rift between what's happening online right now and how people outside of this tech-bubble are just carrying on normally with their lives. I came across a tweet from Tim Urban last week, and I can't express how much I relate to the sentiment:Link to PostThis week, I was heavily nerd-sniped once again and obligated to descend into a rabbit hole where I explored how to manipulate QR codes to embed pixelized art in them, all while keeping them scannable.In other news, there's currently a big debate going on around how to properly pay tribute and take inspiration from existing art now that LLMs have enabled anyone to create and re-create pretty much anything. There's a fine-line between creating transformative work that tributes the original artist vs. making lazy slop copies that can only be perceived as insulting, and the etiquette around sharing this kind of work.Making Art with QR CodesWhile scrolling through Pinterest, I came across this stellar poster by Bulgarian designer Ivan Kashlakov, which depicts a colorful QR code composed of a mish-mash of small colorful characters:Link to Poster | Ivan Kashlakov's SubstackAfter tracking down its origin, I found that it's Ivan's submission for the 2021 edition of Poster for Tomorrow, an international poster competition on social issues. I just checked, and the competition is still running, with the 2026 theme being "Dignity". I couldn't find anything about this year's winners, but it might be worth adding it to your calendar in 2027 if you'd like to participate — I know that there are a bunch of artists following this newsletter 👀Long story short, I was inspired by the little pixel crowd depicted in the QR code, and started thinking about an algorithm to generate the pixelized characters and place them on a grid. I ended up with a more elaborate version of the rectangle packing algo I wrote a few years ago, where each little character in the sketch is just a rectangular patch that depicts its torso, with arms and legs growing outwards from the four corners via random path logic.What's fun here is changing up the random path logic that controls the trajectory of the limbs. It gives each crowd a pretty distinct feel, and some of the characters seem to strike pretty intentional poses, when that isn't actually the case.Seeing that Ivan's original poster wasn't a functioning QR code (at least my phone's camera didn't want to pick it up), I naturally had to investigate whether it was possible at all to stylize a QR code in that manner. It's kind of weird, because I've used QR codes hundreds of times throughout my life, but never actually felt compelled to look into how they work. In my mind, I just assumed that the black-and-white pixels are a bit pattern that encodes whatever link (or other text information) we want to share through it. But it's actually much more involved than that, as you may deduce from the following diagram:I'll try to keep it short, because this newsletter isn't meant to be a QR tutorial (and I want to do other things this week still 🤣), but in a nutshell:Some structures in the QR code are fixed and some aren't. Everything colored in the diagram above is necessary for the scanner to decode the QR pattern. For instance, the finder patterns — the black square blocks in three corners — in addition to the alignment pattern, are there for the scanning device to be able to locate the QR pattern and read it in the first place.The blue pixels represent the encoded message. It's always in the bottom-right corner of the code and is scanned in a zig-zag pattern moving up and leftwards. The shorter the encoded message, the fewer modules we need to reserve for it, so instead of encoding https://www.gorillasun.de, we can simply encode gorillasun.de, for instance.The grey modules in the middle are filler and ignored. They can be modified in an arbitrary manner and will be where we'll fill in our art, pun not intended.With this information we can already put together how to place our art inside the filler portion of the QR code. We just get a library to compute a valid QR code (because why do that from scratch?) from an input message (gorillasun.de), then fill in our art instead of the filler pixels.
And voilà...