HomeGenerative Art & Algorithmic PatternsIslamic Geometric Patterns

✦ Islamic Geometric Patterns

Generate interactive Islamic geometric star patterns. Choose the number of star points (n) and stellation parameter (k) to create {n/k} star polygon tessellations on square or hexagonal grids. Inspired by Girih tiles, Alhambra mosaics, and Ottoman geometric art. Save PNG.

Generative Art & Algorithmic Patterns3DEasy60 FPS
islamic-geometry ↗ Open standalone

About this simulation

This generator draws Islamic star-and-strapwork patterns live in a WebGL shader using a signed-distance-field technique, not pre-rendered tiles. Each grid cell is folded by its dihedral symmetry — 4-fold on the square lattice, 6-fold on the hex lattice — then a rosette of mirrored rays and rings traces an n-pointed star, echoing the girih strapwork of the Alhambra and Persian shrines.

🔬 What it shows

Each cell's angle is folded into one symmetric wedge, then mirrored rays plus an inner ring (radius 0.28) and outer tip (radius 0.46) trace the star outline. Cells alternate between two palette colours in a chequerboard fill, with strapwork drawn wherever the distance field crosses the Line width threshold.

🎮 How to use

Pick 6, 8, 10 or 12 star points and a Square or Hex lattice via the toggle buttons. Scale/zoom (1–9) sets tile density, Line width (0.01–0.12) thickens the strapwork, Rotation speed (0–0.3) spins the pattern. Choose from six palettes, drag/scroll to pan and zoom, or click Reset for the default.

💡 Did you know?

In 2007 physicists Peter Lu and Paul Steinhardt showed that 15th-century craftsmen at the Darb-i Imam shrine in Isfahan used girih tiles to build patterns equivalent to Penrose tilings — nearly five centuries before Penrose described them in 1974.

Frequently asked questions

What do the 6, 8, 10 and 12 star-point buttons change?

They set n, the points folded into each cell. This changes the wedge angle (360° divided by n) the shader mirrors around — 12 gives finer, more spiked rosettes than the bolder 6-point hexagram.

What's the difference between the Square and Hex lattice modes?

Square mode repeats stars on a plain grid. Hex mode interleaves two offset grids with vertical spacing d × √3÷2 — the standard trick for tiling hexagons from staggered rectangular lattices.

How does the shader draw the star without pre-made artwork?

Each pixel converts to polar coordinates, folds its angle into one wedge, then measures distance to two mirrored rays and two circles at radii 0.28 and 0.46. Below Line width, it's painted as strapwork.

What do the six colour palettes represent?

Islamic Gold and Moroccan Terracotta echo ochre tilework, Alhambra uses Nasrid-palace teal, Ottoman Blue reflects Iznik ceramic blues, Mughal White gives marble-inlay monochrome, and Neon Night is a modern high-contrast option.

Is this an accurate reconstruction of real Islamic tilework?

It's a faithful model of dihedral symmetry, star polygons and girih-style strapwork, not a copy of any single historical tiling, which often mixes several star orders and irregular grids.

Frequently Asked Questions

Why did Islamic art focus on geometric patterns rather than figurative imagery?

While the Quran does not explicitly prohibit figurative art, Islamic tradition cautioned against creating images that might lead to idolatry or compete with God's creation. This led artists to develop abstract geometric and calligraphic traditions instead of representational art, although figurative painting was practised in secular contexts across the Islamic world.

What mathematical properties do Islamic patterns exhibit?

Islamic patterns display all 17 wallpaper group symmetries — every possible 2D periodic tiling pattern appears somewhere in Islamic art. They commonly use 4-fold, 6-fold, 8-fold, and 12-fold rotational symmetry, along with reflection and glide-reflection symmetries. Some aperiodic patterns exhibit 5-fold and 10-fold symmetry, which cannot occur in periodic tilings.

What are girih tiles?

Girih tiles are a set of five decorated polygons (a decagon, a hexagon, a bowtie, a wide rhombus, and a narrow rhombus) whose edges are marked with strap lines at specific angles. When assembled, their strap lines automatically generate complex Islamic star patterns without individual construction. 15th-century craftsmen appear to have used these tiles to construct quasi-crystalline patterns.

How are Islamic geometric patterns drawn with compass and straightedge?

The process begins by establishing a regular grid based on circles or polygons. Lines are drawn connecting specific points on the grid at prescribed angles, typically multiples of 15° or specific fractions of the circle. The intersections of these lines define the vertices of star polygons. Skilled craftsmen developed sets of template shapes (girih tiles) to achieve consistency without individual calculation.

Are Islamic geometric patterns related to modern quasicrystals?

Yes. Roger Penrose discovered aperiodic tilings with 5-fold symmetry in 1974; Dan Shechtman found the first physical quasicrystal in 1984 (earning the 2011 Nobel Prize in Chemistry). Peter Lu and Paul Steinhardt's 2007 Science paper demonstrated that Islamic craftsmen constructed equivalent aperiodic Penrose-like tilings at least 500 years earlier, suggesting remarkable intuitive geometric understanding.

⚙ Under the hood

Build star polygons and girih tilings from compass-and-straightedge rules, generating the interlaced patterns of the Alhambra and Ottoman workshops.

Islamic geometrystar polygontessellationgirih tilesAlhambraOttomangenerative artn-k star

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)