MANICHUOS / mithila.js
← Back
Skip to project story

GENERATIVE ART · 2026

Mithila
Tree of Life

A seed becomes a tree, an inhabited canopy and a painting that gently moves.

A browser-based drawing experiment inspired by Madhubani painting. Curved branches, intricate motifs and ornamental borders emerge from a shared set of growth and composition rules.

A charcoal painting of a sweeping, finely hatched tree, with pale green leaves, copper flowers and a peacock at its roots
MITHILA-005Charcoal festival · Unfolding fan

2026 · Working prototype

My contribution
Concept, art direction, interaction design and repeated visual evaluation of compositions and motion.
Build & assistance
JavaScript, SVG and Canvas generator built with Codex. I directed changes to the branching, motifs, spacing and visual language.
Evidence & scope
A reproducible seed-based browser studio, source code and automated variation, attachment and motion checks. Gallery studies use an earlier generator version.

Tools in this version JavaScript · SVG · Canvas · HTML / CSS · Codex

ONE INPUT, DIFFERENT PAINTINGS

Each seed has its own character.

The seed determines the composition, palette, branching architecture, motif families, border and wind. These choices are coordinated: a dark ground changes the linework, a broad crown changes where ornaments can sit, and a flower’s scale depends on its place in the tree.

These studies were drawn with an earlier generator version. The updated studio creates a new, reproducible interpretation of each seed.

DEVELOPING THE SYSTEM

Why I let branches overlap

Early versions kept ornaments so far apart that the tree looked like a diagram. I allowed leaves and flowers to overlap while keeping the forks of the branches readable.

The skeleton combines lateral, forked, fan and tiered branching. Secondary shoots develop from established branches; taper, curvature and attachment points give the canopy a continuous structure.

Ranjan Paswan’s Tree of life with Krishna was one visual reference. In my generator, pairs of contours and bands of hatching give each leaf an interior pattern.

Paired contours, hatching, veins and patterned panels carry detail into the leaves, flowers, birds and border. Lotus, peacock and fish forms are constructed from parameters, so their silhouettes and internal drawings can change between seeds.

Current studio rendering of MITHILA-005.
MITHILA-005 · current generator
Full drawing of seed MITHILA-005
MITHILA-005 · archived generator
Enlarged detail of curved branch junctions, double outlines, hatched leaves and a perched bird
Detail from MITHILA-005: the same drawing rules operate at the scale of the canopy and the individual leaf.

FROM SEED TO IMAGE

One seed.
A repeatable drawing.

  1. Derive the composition. A string seed drives deterministic random choices for the palette, branching architecture, motifs and border.
  2. Place the drawing. Branch curves establish attachment points. Placement rules check motif footprints, branch clearance and permitted overlap. Composition runs in a worker, with a main-thread fallback.
  3. Render and animate. SVG drawing geometry and cached Canvas layers support the preview, growth and wind motion. Exports use SVG directly, or rasterize it to PNG.

I directed the visual rules and evaluated the results; coding and implementation were developed with Codex. Automated checks cover seeded variation, branch attachments, motion and cached geometry alignment.

THE STUDIO

Watch a painting develop.

Choose a seed or shuffle for a new one. Branches extend from their origins, followed by outlines and internal marks. The drawing completes in about 10–15 seconds, then settles into subtle wind: boughs bend slowly, leaves flutter, and animals make small movements.

INTERACTIVE PROJECT

Mithila drawing studio

Launch to explore the project here.

Replay, pause, save seeds and export SVG or PNG.

INFLUENCES & AUTHORSHIP

A generative interpretation.

This project draws on the living painting traditions of Mithila and the work of its artists. It is a contemporary software experiment, with its own rules for growth, placement and color.

Visual references include Ranjan Paswan’s Tree of life with Krishna (2015) and D’source’s documentation of Madhubani techniques. Lingdong Huang’s {Shan, Shui}* informed the approach to modular procedural drawing. A branching diagram by Sun, Niklas, Fang, Xiang, Wu and Yang (2010) informed the structural grammars.

Concept, art direction and interaction design by Mansi Bana. Built with Codex. Source code is available under the MIT license.

Full references, credits & source ↗