Kobayashi Art Studio | Generative Math Art
My Kobayashi art tool creates a pleasing geometric arrangement of shapes using mathematical principles. Each iteration combines simple shapes (squares, circles, triangles, and arcs) arranged in grids that feel both random and intentional. I think it looks like โ60s modern art. You know that there is a pattern. You canโt put your finger on it, but it is pleasing to the eye. I also created a Valentineโs Day Kobayashi heart. I think it would make a lovely card to give to your sweetie.
The tool is named after Shoshichi Kobayashi (1932โ2012), a renowned Japanese mathematician whose work in differential geometry explored how complex spaces can be understood through their internal structure and the relationships between their parts.
Kobayashi Art Studio
Generative grid art for print
Coloring Page
Export: 12" ร 12" at 300 DPI (3600 ร 3600 px)
Kobayashiโs legacy
Shoshichi Kobayashi spent most of his career at UC Berkeley, making groundbreaking contributions to the understanding of complex manifolds and geometric spaces.
- The Kobayashi metric:ย His most famous contribution introduced a sophisticated way to measure โdistanceโ on curved mathematical spaces that fold and curve in ways that are difficult or impossible to map and measure.
- Mappings and transformations:ย What made Kobayashiโs work powerful was his focus on mappings between spaces, understanding how one geometric structure can transform into another while preserving essential properties.
The Fibonacci connection
The heart of our toolโs visual attractiveness lies in the Fibonacci sequence: 1, 1, 2, 3, 5, 8, 13, 21, 34, an arrangement thought by some to be pleasing to the eye, though research is unclear on the point.
This sequence appears throughout nature, in flower petals, and pinecone scales, because it embodies a kind of optimal growth and structure. Our eyes find these proportions inherently pleasing. The tool uses what we call theย โKobayashi sequenceโย (Fibonacci-based) to determine color relationships, ensuring shapes at different depths and positions share a mathematical kinship rather than clashing randomly.
Kobayashi found a way to measure distance on complex spaces that cannot be measured normally. He used holomorphic discs: small, perfectly round patches of flat space, each one bent into place along the curved space without tearing or folding back on itself. To find the distance between two points, you lay a chain of these discs from one point to the other and measure across each disc with the discโs own built-in distance. The Kobayashi distance is the smallest total any chain can achieve.
In other words, he measured something complicated by covering it with copies of one simple shape. Our tool works similarly. Every image is built from a few simple shapes repeated across a grid, and then the Fibonacci-based sequence sets a steady, measured step from one color to the next, so the pieces relate to each other instead of feeling random. The result is a harmonious piece that feels put together.
From recursive spaces to recursive art
The tool offers two modes that reflect different approaches to understanding geometric structure:
- Fixed Grid modeย creates uniform cells: a regular tessellation of space where every shape gets equal importance. This mirrors how mathematicians often begin studying complex spaces: by imposing a regular coordinate system.
- Recursive modeย echoes Kobayashiโs work more directly. The algorithm subdivides space organically, creating a hierarchy where each region contains smaller regions.
Just like Kobayashi worked with large, complicated spaces by looking closely at small pieces of it and how they fit together, each split in our recursive math generates a smaller piece that still fits back into the whole.
How to use the tool
Choose a palette
Click any color circle to select a palette. Each contains five harmonious colors distributed according to the Fibonacci-based sequence:
Terra | Ocean | Forest | Gold | Noir | Berry | Pastel | Sunset
Select a mode
- Fixed Gridย creates uniform cells: every shape gets equal space. Choose grid sizes fromย 2ร2 up to 24ร24.
- Recursive modeย subdivides space organically. The algorithm decides whether to split each cell into four smaller cells, which creates natural variation in shape and grid sizes.
- Adjust the depthย to control design complexity. Lower depths give you larger shapes with subtle detail; higher depths create dense, intricate patterns.
Set your print size
Choose dimensions that match your intended use, from 8ร8 to 30ร36.
Choose your DPI
DPI (dots per inch) determines print quality:
- 150 DPI: Drafts and screen viewing
- 200 DPI: Good quality prints
- 300 DPI: Professional, high-resolution output
- Higher DPI means larger file sizes but crisper prints.
The shapes
Each cell can contain one of several shapes, chosen by an algorithm using weighted randomness.
- Squares and circles
- Quarter arcs and diagonal triangles
- Concentric shapes and outlined squares
Just as Kobayashiโs mathematics maintained consistent measurement even as underlying spaces curved and changed, our tool maintains visual coherence even as shapes and colors vary.
Coloring pages
Every composition can be exported as a coloring page: the same design rendered as black outlines on white. These make wonderful:
- Mindful coloring activities for all ages
- Classroom art projects exploring mathematical patterns
- Therapeutic exercises for focus and relaxation
The coloring page matches your current design exactly, so you can compare your colored version to the generated palette, or create something entirely your own.
Tips for best results
- Generate multiple times.ย Each click creates a unique composition. Keep clicking until one speaks to you.
- Match grid size to print size.ย A 4ร4 grid on a 30ร30โณ print creates bold, chunky shapes. A 16ร16 grid on an 8ร8โณ print creates delicate detail.
- Try recursive mode for an organic feel.ย The variable cell sizes create more natural-looking compositions that echo patterns found in nature.
- Use Noir for versatility.ย Black-and-white prints match any dรฉcor and frame beautifully.
- Print on quality paper.ย Matte cardstock or fine art paper.