FOCUS

Matto · 2021 · Factory

A bold optical-illusion tunnel: blue and black triangular panels with white gridlines recede toward a centre, forming a one-point-perspective box or corridor. At its heart, concentric yellow, blue, and black squares nest inward like a hypnotic vortex. Small square nodes mark each vertex. Crisp, graphic, and dizzying with depth.
Matto · via Art Blocks ↗ · © the artist
Sample output of FOCUS
Matto · via Art Blocks ↗ · © the artist
Sample output of FOCUS
Matto · via Art Blocks ↗ · © the artist
Sample output of FOCUS
Matto · via Art Blocks ↗ · © the artist

FOCUS is the second project in my ‘Zenerative’ series of Zen-inspired generative art, following [Ensō](https://www.artblocks.io/project/34). The algorithm can produce interactive pieces that are elegantly minimal as well as artworks featuring complex patterns that explore visual illusions and artificial space. FOCUS outputs span three responsive aspect ratios, each of which have three possibilities for the central shape - or focus. Drawing inspiration from the Zen art tradition of doing more with less, the limited palette consists of black, white, and five colors. This palette both constrains possible outcomes and allows the creation of unique perceptual interactions. Except in extremely rare scenarios, each piece can provide a wide variety of visual experiences through its interactive features: use up and down arrows to adjust the pattern recursion factor, left and right arrows to adjust the midpoint count, ‘h’ to hide or show the central shape, and ‘s’ to save. As a gift to my collectors, FOCUS has a free-to-claim, 100% on-chain, generative SVG companion project called [deFOCUSed](https://matto.xyz/project/defocused/). (Thank you!)

How it works

The core is recursive shapes that shrink in nesting. By recursively drawing similar forms of basic shapes — square, rhombus, circle, lens — shrunk little by little inward (rectRecurser / diamRecurser), it makes a figure where concentric layers overlap many times over. Further, it finely subdivides the edges (midPs), fills the surfaces with hatching lines connecting the subdivision points, and joins the lens parts with curves. As the Zen-inspired 'Zenerative' series, it draws differently at every point — from the minimal to complex patterns that produce optical illusions — through the combination of recursion depth and subdivision fineness.

Palette

From the generator script · 7
#ffffff#000000#275bb2#43aa8b#fcd612#b10b0b#f368cb
Extracted from outputs · 8
#d2d4d1#919a91#3a5c92#fafaf4#b1b6b2#fad92c#2c3545#45aa8c

Algorithms

Details

Tools
p5.js
Runtimes
Browser (Canvas / 2D), On-chain Deterministic
Movement
Long-form Generative Art
Medium
On-chain generative edition
Relations
released-on (2021-10) → art-blocks
Script hash
6eb9b8939ee875f35ede89fd4f0c936fb3f718b612007481ac1efd28e752c097
On-chain
ethereum · 0xa7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd270 · #181

View generator ↗ · Art Blocks ↗

Sources

Related works (by shared algorithms)

a heart and a soul
roman-janajev · 2021
Pieces of Me
r4v3n · 2021
Diggly Collects All
dca · 2025
Sheets
rudxane · 2024
Blooms
cory-haber · 2024
Cytographia
golan-levin · 2024
Twist
rafael-rozendaal · 2024
What can be
addie-wagenknecht · 2024

Last updated 2026-07-16