Truchet Tiles
初出 1704 · Sébastien Truchet — Sébastien Truchet, "Mémoire sur les combinaisons" (1704). · 年表 ↗
第三者・冠名 名称 — エポニム。Truchet は 1704 年の論文でタイルを記述したが自らの名を冠していない。 「Truchet tiles」の名は Cyril Stanley Smith が 1987 年の Leonardo 論文 "The Tiling Patterns of Sebastian Truchet…"(Truchet 原典の訳を含む)で 現代文献に定着させた。エポニムの厳密な命名者は本調査では未確定。
ひとことで 対称軸を持つ単純なタイルをランダムな回転で並べて複雑な模様を作る古典的手法。曲線・対角線型などのバリエーションがある。
コード
上のデモの実際のスケッチ(サンドボックスで再現可能)。これで全部です。
truchet-tiles/index.html
const SEED = Math.floor(Math.random()*1e9);
function setup() {
randomSeed(SEED);
const s = Math.min(windowWidth, windowHeight);
createCanvas(s, s);
background(15);
noFill();
strokeCap(SQUARE);
// Curved Truchet: each cell randomly orients two quarter-arcs
// connecting opposite midpoints.
const N = 14;
const cs = width / N;
strokeWeight(cs * 0.25);
stroke(240);
for (let i = 0; i < N; i++) {
for (let j = 0; j < N; j++) {
const x = i * cs;
const y = j * cs;
if (random() < 0.5) {
// Arcs connecting (top↔right) and (bottom↔left)
arc(x + cs, y, cs, cs, PI/2, PI);
arc(x, y + cs, cs, cs, -PI/2, 0);
} else {
// Arcs connecting (top↔left) and (bottom↔right)
arc(x, y, cs, cs, 0, PI/2);
arc(x + cs, y + cs, cs, cs, PI, -PI/2);
}
}
}
}仕組み
辺上の固定接続点でデザインが接する 1 種類の正方形タイル(例:角から角への対角線、隣接辺の中点を結ぶ 2 本の四分円弧)を用意し、(1) グリッドの各セルでタイルの回転(必要なら反転)をランダムに選び(対角タイルは 2 状態、弧タイルは 2 回転)、(2) その向きで描く。どの向きも同じ辺点で揃うため隣接タイルが必ずつながり、局所的なランダム性が連続した迷路・等高線・ループ曲線を構成する。選択に重みを付けたりノイズで駆動すると質感が偏る。
パラメータ
tileSet: string — The set of tile motifs used (e.g. quarter-arcs, diagonals).gridSize: number — Number of tiles per side.rotationSet: array — Allowed orientations each tile may be placed in (e.g. 0/90/180/270°).
系譜
よく組み合わされるアルゴリズム
- Multi-color Modular Truchet · 3 作品
- Geometric / Hexagonal Tiling · 3 作品
- Perlin / Simplex Noise · 2 作品
- Bezier / Catmull-Rom Splines · 1 作品
- Polygon Mosaic · 1 作品
- Quadtree / Recursive Quad Split · 1 作品
- Cellular Automata · 1 作品
- Wave Function Collapse · 1 作品
- Modular Assembly / Parametric Character · 1 作品
- Generative Typography · 1 作品
- 10 PRINT · 1 作品
- HSL / Hue Cycle · 1 作品
このアルゴリズムを使う作品 (11)
70s Pop Ghost Bonus Pack 👻
daniel-catt
70s Pop Series One
daniel-catt
70s Pop Super Fun Summertime Bonus Pack 🍸
daniel-catt
Cushions
devi-parikh
Fermented Fruit
cyberia
Loom
anna-lucia
Mental pathways
fabianospeziari-x-donnoh
nullMachines
kerim-safa-loackme
Swing
eltono
Trossets
anna-carreras
Undercover
artplusbrad
最終更新 2026-07-16