> For the complete documentation index, see [llms.txt](https://docs.tempoweave.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tempoweave.com/help-by-menu-tabs/design-menu/math-drafts.md).

# Math Drafts

*Available on Desktop. Requires TempoWeave Studio Pro.*

**Design ▸ Weave Explorer ▸ Math Drafts** turns mathematical structures into weaving drafts: cellular automata, Pascal's triangle, prime numbers, the digits of π, space-filling curves, and more. Each generator has a short explanation of the mathematics beside its settings, so the dialog doubles as a tour of some beautiful ideas.

Every generator falls into one of two families, and knowing which is which tells you what to do with the result.

### Two kinds of result

**Sequence generators** produce a threading, a treadling, or a color order directly. The result is a finished draft on the shafts you asked for. Fibonacci Sequence, Lissajous Curve, Magic Square, Digits of a Constant, Binary Sequence, and Collatz Sequence work this way.

**Picture generators** produce an image: the Sierpiński triangle of Rule 90, a prime sieve, the winding line of a Hilbert curve. A picture is not cloth. Any picture with many different columns needs a shaft for every distinct column, and a curve or a triangle has far more of those than a loom has shafts. So the picture generators offer an **Output** choice:

* **Profile draft (for Block Substitution)**, the default. Each cell of the picture becomes one block of a profile draft, and the **Blocks** setting caps how many different blocks the picture may use. When the picture has more distinct columns than the budget, similar columns are merged into the nearest block, so the picture is approximated rather than refused. Apply the result with **Design ▸ Block Substitution** and any template, and it becomes real cloth: Summer and Winter, twill blocks, shadow weave, or Deflected Double Weave. A message under the ribbon reminds you of this step.
* **Twill texture** or **Raw curve**, the older behavior. Twill texture weaves a balanced twill whose threading and treadling are perturbed by the picture; it is always weavable but the picture itself is not visible. Raw curve draws the Hilbert curve literally as a liftplan, with one shaft per distinct column and long floats.

#### Sizing a profile

For profile output, set **Warp Threads** and **Weft Picks** to the size of the *profile*, not the finished cloth. Block Substitution multiplies both by the template's unit, usually four. A picture 32 threads wide and 16 picks tall becomes cloth about 128 ends by 64 picks in a four-thread template.

The picture's height decides how many different columns it has. Pascal's triangle with 8 rows has about 8 distinct columns and fits 8 blocks exactly; with 32 rows it needs about 32. If the merged result looks rough, give it more blocks, or make the picture shorter and let Block Substitution's repeat give you the length.

### The generators

**Cellular Automaton.** Wolfram's rules 0 to 255 grown row by row from a single cell, a random row, or an alternating row. Rule 90 gives the Sierpiński triangle, Rule 30 gives chaos, Rule 110 can compute anything.

**Pascal's Triangle.** Binomial coefficients modulo 2 to 8. Modulo 2 is the Sierpiński triangle again; other moduli give nested triangles in several tones.

**Modular Arithmetic Grid.** A multiplication or power table modulo 2 to 16, the pattern behind many traditional tilings.

**Prime Number Sieve.** The primes marked on a line, a diagonal, or an Ulam spiral.

**Fibonacci Sequence.** The sequence 1, 1, 2, 3, 5, 8 mapped onto shafts, for the threading, the treadling, or both.

**Lissajous Curve.** Two sine waves at chosen frequencies and phase, traced onto the shafts, for flowing threadings that rise and fall.

**Magic Square.** Odd and doubly even magic squares, 3 to 12, read as threading and treadling.

**Hilbert Curve.** The original space-filling curve generator: Path or Visit Order styles, band width, and tiling. It draws the literal curve, so it needs a tabby ground to weave.

**Hilbert Curve 2.** The second edition with options

* **Curve**: Moore, a closed loop that repeats cleanly, or Hilbert, an open line that starts and ends in two corners.
* **Band Width** and **Gap** set the thickness of the path and the space between its runs, in threads.
* **Orientation** and **Mirror** turn and flip the curve.
* **Repeats** lays copies across the warp and along the weft.
* **Output** is profile by default. An order 3 Moore curve has exactly 8 distinct columns and fits 8 blocks with nothing lost; order 4 fits 13; higher orders are approximated by the block budget.

The channel between the runs of the path is itself a second curve. Apply the **Deflected Double Weave** template and the path weaves as one layer and the channel as the other, two interlocked curves, each on its own face of the cloth.

**Digits of a Constant.** The decimal digits of π, e, √2, or the golden ratio φ, computed exactly to as many digits as the draft needs. Each digit picks a shaft, for the threading, the treadling, or both, or picks a color over a straight draw. **Skip Digits** starts further into the number so two projects from the same constant do not match.

**Binary Sequence.** Four famous never-repeating sequences of ones and zeros: Thue-Morse, the Fibonacci word, Rudin-Shapiro, and the paperfolding sequence that traces the dragon curve. As **Color-and-weave** the sequence becomes a two-color warp and weft order over plain weave, 2/2 twill, or basket weave. As a **walk** each 1 steps up a shaft and each 0 steps down, turning at the top and bottom, so the threading wanders instead of zigzagging.

**Collatz Sequence.** Halve an even number, triple an odd one and add 1, until it reaches 1. Each value picks a shaft. When a number lands, the next starting number takes over, so the draft never runs out. Every starting number gives a different line; 27 is the classic, and a birthday or a house number makes the draft yours.

### Symmetry

The **Symmetry** choice at the bottom of the dialog mirrors any result after it is generated: the second half of the warp, the weft, or both becomes a reflection of the first half. Point-symmetric threadings and treadlings come from a single click rather than a second pass with the drawing tools.

### Tips

* Everything here is undoable. Apply, look, undo, change a number, apply again.
* A profile draft from a picture generator is a normal draft. Edit it with the drawing tools before you run Block Substitution, for example to close a gap or thicken a line.
* Digit and sequence generators use the palette slots you already have. Set up two to ten colors in the palette first, then generate, and the colors land where the numbers put them.
* The explanation beside each generator is written for weavers, not mathematicians. It is worth reading once; several of these ideas explain patterns you have already woven.
