Geometric / Hexagonal Tiling

アルゴリズミックなタイリング/テッセレーションは、イスラム幾何学文様やトゥルシェ・タイル(セバスチャン・トゥルシェ、1704)といった数世紀にわたる伝統、および非周期タイリング(ペンローズ、1974)に由来する。単一起源はなく、深い前計算的系譜を持つ。

コミュニティ・通称 名称 — 命名・エポニムではなく記述的なカテゴリ名。用語の単一の命名者は確認されていない。

ひとことで 六角・三角・ペンローズなどの規則的タイル張りで画面を覆う手法。

Geometric / Hexagonal Tiling · Open in new tab ↗ · Motion begins only when you press Run.

コード

上のデモの実際のスケッチ(サンドボックスで再現可能)。これで全部です。

geometric-tiling/index.html
const SEED = Math.floor(Math.random()*1e9);

function setup() {
  randomSeed(SEED); noiseSeed(SEED);
  const s = Math.min(windowWidth, windowHeight);
  createCanvas(s, s);
  background('#0a0a0a');
  noStroke();

  // Hexagonal grid (pointy-top). Each cell is coloured by a 2-D noise
  // sample and rendered as a regular hexagon.
  const R = s * 0.055;           // hex circumradius
  const w = Math.sqrt(3) * R;    // horizontal step
  const h = 1.5 * R;             // vertical step (rows)
  const FREQ = 0.06;
  const palette = ['#e6261f','#eb7532','#f7d038','#a3e048','#49da9a','#34bbe6','#4355db','#d23be7'];

  for (let row = -1; row * h < height + R; row++) {
    const xOffset = (row % 2 === 0) ? 0 : w / 2;
    for (let col = -1; col * w + xOffset < width + R; col++) {
      const cx = col * w + xOffset;
      const cy = row * h;
      const v = noise(cx * FREQ * 0.05, cy * FREQ * 0.05);
      const idx = Math.floor(v * palette.length * 1.2) % palette.length;
      fill(palette[idx]);
      drawHex(cx, cy, R * 0.96);
    }
  }
}

// NB: `hex()` is a p5 built-in (number → hex string) — name our helper drawHex.
function drawHex(cx, cy, r) {
  beginShape();
  for (let i = 0; i < 6; i++) {
    const a = (i / 6) * TWO_PI - HALF_PI;
    vertex(cx + r * Math.cos(a), cy + r * Math.sin(a));
  }
  endShape(CLOSE);
}

デモのソースを開く ↗

仕組み

タイル張りは、繰り返し単位とそれを平行移動する格子で定義される:(1) 格子/グリッドを選ぶ。正方格子は x・y 方向に刻み、六角格子は交互の行を半セルずらし行間隔を √3/2·サイズにする(近傍計算には軸/立方座標が便利)、(2) 各格子点にタイル(モチーフ)を配置し、必要ならタイリングの対称群に従い回転/反転、(3) 各タイルを塗る/装飾する(単色・サブパターン・Truchet 風のランダムモチーフ)。正則タイリングは完全に反復し、ペンローズなど非周期タイリングは整合規則や置換(各タイルを小タイルへ膨張)で反復せず隙間なく埋める。

パラメータ

系譜

関連
Truchet Tiles、Multi-color Modular Truchet、Wave Function Collapse、Polygon Mosaic

よく組み合わされるアルゴリズム

このアルゴリズムを使う作品 (39)

Aerial View
dalenz
Agglo
leander-herzog
Andradite
eltono
Black and White Structure
zdenek-sykora
Boundary Functions
scott-snibbe
Dear Hash,
modnar-wolf
Dive
rafael-rozendaal
Dynamic Slices
pxlq
Elementals
michael-connolly
Endless Nameless
rafael-rozendaal
Escherly Seeds
martijn-cohen
Exhibition: 3291
cryptobauhaus
Fifteen Systematic Colour Rows with Vertical Condensations
richard-paul-lohse
Fontana
harvey-rayner
Grid Distortion
marius-watz
Implications
ixnayokay
Imposter Syndrome
ippsketch
Interruptions
vera-molnar
Intersections
rafael-rozendaal
Lobofour
tony-robbin
Loom
anna-lucia
marfaMESH
harvey-rayner
Masonry
eric-davidson
Orthogone
pandelune
Ouroboros
raregonzo
Panelscape 🅰🅱
paolo-tonon
Planetary Folklore Participations No. 1
victor-vasarely
Quinze variations sur un même thème
max-bill
QWERTY
tara-donovan
Quine
larva-labs
Ringers
dmitri-cherniak
Schotter
georg-nees
Squares and Triangles
maksim-hapeyenka
Swimming Pool
paul-brown
Swing
eltono
Time Squared
steen-n-e-o
Triangular Tonal Drawing
tony-longson
Trossets
anna-carreras
Variant Plan
jeff-davis

最終更新 2026-07-16