In Zen, ensō is a symbol that represents elegance and enlightenment. It is typically painted by hand in an uninhibited way, allowing for unexpected and beautiful results. Inspired by sumi-e (ink wash painting), this project mimics the practice of painting an ensō in ink by utilizing p5.js. Each generated image uses values from a unique transaction hash to determine paper, brush, ink, the quantity of ink held by each bristle, how quickly the ink flows, and more—all with the goal of creating a simple yet serendipitous painting.
Inspiration and Creation
Art and code have been part of who I am for over 25 years: I've been an artist and a programmer since I could draw and use my high-school's computers. In college, I became interested in Chinese martial arts and Eastern spirituality, and while these also became core to who I was, I never imagined a scenario where my philosophical and spiritual beliefs would merge with my art and programming skills.
For a long time, they never crossed paths…the closest was that I used sumi-e (ink wash painting) as a meditative practice.
I watched the NFT scene back in 2017 and even taught myself solidity to try and mint my own artwork, but I didn't feel like I had the skills to achieve my vision. I taught myself python, processing, ruby, HTML, p5.js, and finally, vanilla JavaScript.
After trials and a ton of errors (I can be very stubborn) Ensō, and Zenerative—my Zen-inspired generative art series—were born.
The Generative Program
This project mimics the practice of painting an ensō in ink by utilizing p5.js. Each generated image uses values from a unique transaction hash provided by the platform (artblocks.io) to determine paper, brush, ink, the quantity of ink held by each bristle, how quickly the ink flows, and more—all with the goal of creating a simple yet serendipitous painting.
The source code is on-chain, on mainnet Ethereum. It is over 200 lines long and 5.75 Kilobytes of data, which took .75 Eth in gas to deploy (don't worry, I offset the environmental impact). Each NFT image can be rendered directly in the browser, utilizing only standardized JavaScript and the official JavaScript library from the Processing foundation. Ensō images are fully deterministic and resolution-agnostic.
Additionally, when rendered live, the NFTs have interactivity: clicking on the image will show or hide the signature stamp.