mosAIc, an old craft in a new hand

Better viewed on a desktop

mosAIc is an open mosaic engine and the agent skill that lays it. Your coding agent draws a picture, a film, or a whole page. The engine lays it as mosaicists have for two thousand years: thousands of stones of glass, marble, and gold, in courses along every edge, set in mortar and tilted to catch the light. This page is one of its walls, cut in your browser around the words you are reading.

Give your agent the skill Try the studio

The source is on GitHub, under the MIT License.

The name in stone. Cutting the stones in your browser.

How a drawing becomes a wall

The heron by the moon as a flat drawing: a few regions of colour. The same stretch of the scene as courses: lines that follow every edge. The same scene cut into flat stones on dark mortar.
  1. I Draw

    Mosaicists often painted the picture on the bed first. Your agent draws it in code, region by region.

  2. II Flow

    Courses follow every edge, as in the Alexander Mosaic. Mosaicists call this andamento.

  3. III Cut

    Courses are cut into tesserae smaller than their cells, so mortar shows.

  4. IV Light

    Each stone gets a bevel and a tilt of its own, as Byzantine mosaicists set gold, so the light catches them one at a time.

Draw

A vine scroll as a flat drawing: a gold stem, a tendril curling round a rosette, and leaves, on deep blue.

Flow

The next swing of the vine as courses: lines that ring the rosette and follow the spiral of its tendril.

Cut

The next swing cut into flat stones on dark mortar.

Light

Eight materials

  • Glass

  • Gold

  • Silver

  • Marble

  • Glass

    Smalti with a broken face and the odd bubble.

  • Gold

    Leaf under a thin glass skin, softly hammered.

  • Silver

    The same leaf, cooler.

  • Marble

    A fine grain and a soft sheen.

  • Basalt

  • Limestone

  • Terracotta

  • Light

  • Basalt

    Dark and dense, with a rare glint.

  • Limestone

    Matte, pitted, and quiet.

  • Terracotta

    Fired clay, warmer in its hollows.

  • Light

    Glass that glows from inside, for lamps and windows.

Studio

Drop an image here, or pick one below.

Your images stay in your browser.