# Weave pattern generator

Cloth worked out thread by thread from a loom’s threading, tie-up and treadling. Show it edge to edge, as a wall hanging or on its draft sheet. Export SVG, PNG or a loop.

Open the generator: https://morph.ogeny.app/weave/

## Design choices

- **Textile & craft** (`medium.textile`): Weaving, dyeing, embroidery and applied craft. Set by “Draft”. https://stylogeny.com/design-choices/textile-and-craft/
- **Repetition & rhythm** (`space.repetition`): Repeated units create a visual cadence. Set by “Repetition & rhythm”. Measured on the opening picture, from 40 to 160: pixels on an edge 43% → 87%. https://stylogeny.com/design-choices/repetition-and-rhythm/
- **Flat fields** (`color.flat-fields`): Unmodulated areas of colour. Set by “Colour order”. https://stylogeny.com/design-choices/flat-fields/
- **Rectilinear** (`form.rectilinear`): Orthogonal bars, blocks and lines. Always. https://stylogeny.com/design-choices/rectilinear/
- **Rational & objective** (`tone.rational`): Clarity, neutrality and order above personality. Always. https://stylogeny.com/design-choices/rational-and-objective/

## How it works

- Every picture is a true weave draft worked out thread by thread: each end sits on one shaft, each pick presses one treadle, and the tie-up decides which thread lies on top, so a cloth could be set up on a loom from the sheet the tool can show.
- Curves, diagonals and blocks are never drawn: they appear because straight vertical and horizontal threads change places.

It never does:

- No motifs from living weaving traditions and no named or registered cloths: the figure comes only from a seeded draft, and there is no stepped-diamond draft, because in strong colours it reads as a community’s rug.
- No tile sets, sheared bands or cord shapes copied from any artist: every mark is a straight thread on the square grid, at fine counts, on the palette of the recipe.
- Movement never pans over a still picture: threads change places, so the figure itself bends, runs, ripples or turns over, and every frame is still a true draft.

## Controls

- `draft` Draft (network | blocks | twill | log-cabin | dogtooth; default network): How the loom is set up: threading curves, blocks of satin, straight twill, or colour-and-weave checks.
- `ends` Repetition & rhythm (40–160, default 88): Threads across the cloth: fewer and larger, or finer. Measured on the opening picture, from 40 to 160: pixels on an edge 43% → 87%.
- `shafts` Shafts (8–32, default 24): How many shafts the loom has: more give larger figures and longer floats.
- `sway` Sway (0.2–1, default 0.9): How far the threading curve wanders: gentle waves or deep ones.
- `colour` Colour order (warp | plaid | fade | two; default warp): Which colour each thread is: warp stripes under one weft, crossing stripes, a fade, or just two.
- `darkWeft` Dark weft (default false): Cross the warp with the darkest colour instead of the ground.
- `stripes` Stripes (2–16, default 7): How many colour stripes the threads are dyed in.
- `look` Thread (threads | flat | floats; default threads): Threads with the ground showing between them, flat squares of colour, or each float as a capsule.
- `layout` Layout (bleed | hanging | sheet; default bleed): The cloth edge to edge, hung from a rod with a fringe, or set in its own threading, tie-up and treadling.
- `move` Movement (undulate | flow | breeze | turn; default undulate): With animation on: the figure bends and melts, runs through the threads, ripples like cloth in moving air, or turns over to its reverse.

## About Bauhaus

A weave draft is an old piece of notation. One strip says which shaft each warp thread runs through, another which treadle each weft thread presses, and a small grid says which shafts each treadle lifts. From those three lists a weaver can tell where every thread lies before setting up the loom. The weaving workshop at the Bauhaus treated this as a way of composing: rectangles, stripes and rhythm worked out from what the loom could do, for wall hangings and for cloth made in quantity.

This generator works from the draft and nothing else. Your seed sets the threading, tie-up and treadling, and the picture is what results when straight threads change places: nothing here is drawn as a curve or a block. Network curves bend a twill along a wandering line, damask blocks swap warp-faced and weft-faced satin, and log cabin and dogtooth make their pattern purely from the order of the colours. The draft sheet shows the notation around the cloth, so you can read how it was made.

With animation on, the threads themselves change places. The figure can bend and melt, run through the cloth, ripple as if in moving air, or turn over to its reverse side. Every frame is still a true draft, and the loop ends where it began.

Bauhaus in Stylogeny (1919–1933): https://stylogeny.com/styles/bauhaus/

## Recipe

```json
{
  "tool": "weave",
  "v": 1,
  "seed": 7,
  "format": "portrait",
  "params": {
    "draft": "network",
    "ends": 88,
    "shafts": 24,
    "sway": 0.9,
    "colour": "warp",
    "darkWeft": false,
    "stripes": 7,
    "look": "threads",
    "layout": "bleed",
    "move": "undulate"
  },
  "palette": "bauhaus"
}
```
