Two Mathematicians

BY MA · 2022 · Factory

On a warm cream ground bordered by a thin frame, a grid of pale lavender circles repeats in tidy rows. Each circle is filled with fine diagonal hatching, giving a soft woven texture. The circles touch at their edges, leaving small interstitial gaps. Quiet, restrained, almost like faded patterned wallpaper or graph paper.
BY MA · via Art Blocks ↗ · © the artist
Sample output of Two Mathematicians
BY MA · via Art Blocks ↗ · © the artist
Sample output of Two Mathematicians
BY MA · via Art Blocks ↗ · © the artist
Sample output of Two Mathematicians
BY MA · via Art Blocks ↗ · © the artist

This project explores the highly mathematical world of Islamic geometric patterns. Islamic design is one of the world's great artistic traditions, but not much is known about the methods used by artisans in centuries past to construct them. One of the first attempts to formalize the geometry behind Islamic patterns was E.H. Hankin's seminal 1908 paper "Polygons in Contact", which remains a key technique today. Our project combines the approach described by Hankin with transformations of designs found at real-world historical sites. Two Mathematicians avoids traditional ornamentation and colouring. It seeks to find beauty in the geometry of the patterns themselves, embellishing only with subtle combinations of basic line and dot shapes. Its two archetypes contrast the precision and order found in Islamic patterns with the informality of a rough draft. In that, it reflects the personalities of its creators, alternating between the obsessive need for order and exactness, and the embrace of just winging it. Controls: - Zoom in or out with scroll wheel, or arrow up/down. - Press 'i' to see the underlying structure.

How it works

The core is the tiling of Islamic geometric patterns. It defines polygonal tiles based on real masterworks of architecture such as the Mosque of Cordoba and the Cappella Palatina, calculates angles from the midpoint of each edge and draws lines to meet one another (the Hankin method of contacting polygons), composing star forms and interlace (woven) patterns. These are laid out across a grid to fill the screen. Furthermore it swells the lines into thick bands, outlines them with hand-drawn-looking Bézier curves (spline) that have roughjs-like wobble, and fills them with hatching and dots. The hash decides the type of pattern, the angles, the fill pattern and the colour scheme, reproducing the craftsman's drafting method through mathematics to produce a different Islamic pattern for each piece.

Palette

From the generator script · 16
#2a2a2a#dddddd#f5f2e3#999999#e26d5a#386641#0353a4#754db6#ffd400#fdc5f5#010204#020400#020304#070809#020001#000102
Extracted from outputs · 8
#453d44#dbd3d7#c0beb3#e3dfd5#f8f5e5#98978f#7a7973#272827

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 (2022-02) → art-blocks
Script hash
ab3ea34c1e992edd2679d552e884329ebd0961a85d1eb1c0dd4a4ea26b7b78c3
On-chain
ethereum · 0xa7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd270 · #242

View generator ↗ · Art Blocks ↗

Sources

Related works (by shared algorithms)

Cytographia
golan-levin · 2024
Hachure
matt-deslauriers · 2023
Metropolis
mpkoz · 2023
Antennas
gcrll · 2021
Letters to My Future Self
ryan-struhl · 2021
SpiroFlakes
alexander-reben · 2021
Diggly Collects All
dca · 2025
Blooms
cory-haber · 2024

Last updated 2026-07-16