Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Drawloom Cloth

A hand-loom bench. A weaving draft folds into a per-pick lift table; the shuttle lays each weft and the beat pushes it home, cloth growing row by row.

示例

Drawloom Cloth
在新标签页中打开

Drawloom Cloth

该示例在沙盒化的框架中运行,无法访问此页面。

在线运行

在 SandBase sandbox 中运行,并在 Lab 中查看结果。

在 Lab 中打开 ↗

你将获得什么

Bring a weaving draft and the yarn colours. The Skill returns a downloadable Skill and a runnable loom bench.

工作原理

  1. 01

    Build the weaver bench

    Drawloom Cloth reads a brief from assets/briefs/ with copy.docTitle, note and hint, and npm install followed by npm run build inlines src/loom.js and the bench chrome into one HTML file. npm run demo serves it at http://localhost:63116/. It runs offline in the browser with no model calls. Eight drafts ship, from tabby and twill to honeysuckle overshot and double shadow.

  2. 02

    Fold the draft into lifts

    The draft is three tables: thr maps each warp end to a shaft, tie is a bitmask of shafts each treadle lifts and trd lists treadles pressed per pick. recalc ORs the tied shafts into lifts per pick and measures every float, warning when maxFloat exceeds 7. step(dt) advances the shuttle, beats each row home and counts the pick.

  3. 03

    Edit a cell and run shoot

    Edit any threading, tie-up or treadling cell and the loom re-folds, finds the first pick whose signature changed and re-weaves from there. npm run shoot runs 15 offline checks: twill weaves 72 picks, tabby reads over-one-under-one and is named plain, an edit re-weaves from the changed pick, and huck floats and a snagging draft are flagged.

常见问题

What does Drawloom Cloth show?

Drawloom Cloth shows a paper-and-ink hand-loom bench where a weaving draft folds into cloth pick by pick. A shuttle lays each weft, the beat pushes it home and the cloth grows row by row with yarn sprites and selvedges. A right-hand swatch book renders all eight presets at stamp size.

Can I design my own weave in Drawloom Cloth?

Yes. Drawloom Cloth makes every grid editable: threading, tie-up, treadling and the warp and weft stripes. The left rail adds draft chips, generators, a yarn palette, stripe modes and a brush. Arrows and Space move a cursor across the draft for keyboard editing.

How does Drawloom Cloth name a weave?

Drawloom Cloth's analyse() reads the draft itself and names it plain weave or a ratio twill, classed straight, point or broken by threading and treadling direction. A read card also reports shafts and treadles used, the repeat and the longest float.

What does the Drawloom Cloth loupe do?

Drawloom Cloth's brass-ringed loupe follows hover, hold or drag over the cloth, repaints the neighbourhood at 4 times and flags floats. Long floats matter because a float longer than 7 is warned as likely to snag.

Can Drawloom Cloth export a swatch?

Yes. Drawloom Cloth saves swatches as PNG. It also switches between Colour and Structure view modes, so you can see the yarn colours or the bare interlacing.

Is Drawloom Cloth free and offline?

Yes. Drawloom Cloth computes the weave in the browser with one bitmask OR per pick and makes no model calls at runtime. Random stripes use a seeded mulberry generator, so a draft weaves identically each time.

Lab Skill · Interactive scenes

Resin Diorama

Live 3D resin-block dioramas in your browser: send a little tram across a clear turquoise sea, or ripple the bay of a cliff island. Synthesized sound, and every scene can be tuned.

Lab Skill · Interactive scenes

3D Vehicle Worlds

Explore interactive 3D vehicle worlds in your browser, with varied terrain, camera controls and driving effects. Choose a playable example to begin.

Lab Skill · Interactive scenes

3D Firefly Terrariums

Turn a thick glass miniature, scatter glowing fireflies and open its brass lid. Actual particles leave through the neck and return before it seals. A moonlit cabin, forest and real local lights in one offline HTML.

Lab Skill · Interactive scenes

Jelly Candy: Fruit Bears

Six translucent fruit gummies on a white table. Grab any part and pull, lift a head until the neck stretches thin, press one flat until it springs back, flick one across the pile or pour in more. Fixed-step soft-body physics and a marching-cubes skin in one offline HTML.

Lab Skill · Interactive scenes

WebGPU Soft-Body Gummy Bears

Four translucent gummy bears on an ivory floor, rendered with native WebGPU. A deterministic 36-second choreography stretches, presses, flips and tumbles them before they settle back to the exact rest pose. Drag any bear to stretch, squish or toss it. A fixed-step tetrahedral XPBD solver in one offline HTML.

Lab Skill · Interactive scenes

Stone Stars: 3D Miniature Landmark City

Turn a city into a storybook 3D island around one landmark, with chapters, a daylight-to-starlight slider, street life and a matching scored 24-second film. Sample: a Gaudí-style basilica.