Perlin / Simplex Noise

初出 1983 · Ken Perlin — Ken Perlin (1983; "An Image Synthesizer", 1985; Simplex/Improving Noise, 2002). · 年表 ↗

第三者・冠名 名称 — 他者が与えたエポニム。Perlin は技法を "noise" として発表し(例:「An Image Synthesizer」1985)、自らの名を冠していない。「Perlin noise」という人名は 1997 年、 映画芸術科学アカデミーが "for the development of Perlin Noise" として技術業績賞を 授与したことで機関的に追認された。命名者と名の初出は本調査では未確定。

ひとことで 格子状の擬似乱数から滑らかな連続値を得るノイズ関数。生成アートでは色・座標・密度のスムーズなランダム化に幅広く使われる。

Perlin / Simplex Noise · Open in new tab ↗ · Motion begins only when you press Run.

コード

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

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

function setup() {
  noiseSeed(SEED); randomSeed(SEED);
  const s = Math.min(windowWidth, windowHeight);
  createCanvas(s, s);
  pixelDensity(1);
  noStroke();

  // Quantised 2D Perlin noise → discrete colour bands (a stylised
  // marching-square-ish look).
  const FREQ = 0.008;
  const RAMP = [
    [12, 16, 40], [33, 50, 90], [90, 110, 130],
    [170, 150, 130], [230, 210, 170], [255, 245, 230],
  ];

  loadPixels();
  for (let y = 0; y < height; y++) {
    for (let x = 0; x < width; x++) {
      const v = noise(x * FREQ, y * FREQ);
      const band = Math.min(RAMP.length - 1, Math.floor(v * RAMP.length));
      const [r, g, b] = RAMP[band];
      const idx = 4 * (y * width + x);
      pixels[idx]     = r;
      pixels[idx + 1] = g;
      pixels[idx + 2] = b;
      pixels[idx + 3] = 255;
    }
  }
  updatePixels();

  // Scatter contour points (not a connected polyline) wherever the noise
  // is near a chosen iso-value — gives a stippled outline.
  fill(255, 255, 255, 180);
  const ISOS = [0.35, 0.5, 0.65];
  const EPS  = 0.004;
  const STEP = 3;
  for (let y = 0; y < height; y += STEP) {
    for (let x = 0; x < width; x += STEP) {
      const v = noise(x * FREQ, y * FREQ);
      for (const iso of ISOS) {
        if (Math.abs(v - iso) < EPS) {
          circle(x, y, s / 600);
          break;
        }
      }
    }
  }
}

デモのソースを開く ↗

仕組み

各整数格子点に固定の擬似乱数勾配ベクトルを割り当て、評価点では (1) 周囲のセルと点の小数位置を求め、(2) 各角で「角の勾配」と「角→点ベクトル」の内積をとり、(3) スムーズステップ的なフェード曲線(6t⁵−15t⁴+10t³)で補間する。これで滑らかで帯域制限されたノイズが得られる。周波数2倍・振幅半分のオクターブを重ねる(fBM)と多重スケールの詳細が加わる。Simplex ノイズは正方格子を単体格子に置き換え、方向アーティファクトを減らし高次元化を安価にする。

パラメータ

系譜

先行例
Ken Perlin
関連
Flow Field / Vector Field、Domain Warping

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

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

70s Pop Super Fun Summertime Bonus Pack 🍸
daniel-catt
A Snap in Time
qubibi
Abstraction
hevey
Act of Emotion
kelly-milligan
Agglo
leander-herzog
Alan Ki Aankhen
fahad-karim
Alien DNA
shvembldr
Alien Insects
shvembldr
Ancient Courses of Fictional Rivers
robert-hodgin
Antichambre
anaglyphic
Anticyclone
william-mapan
APEX
phenomena
Apparitions
aaron-penne
Aragnation
devi-parikh-and-abhishek-das
Arcadia
zachariah-watson
Assemblage
sab-k2xl
Assembly
tezumie
Assorted Positivity
steganon
Automatism
yazid
autoRAD
sgt-slaughtermelon-tartaria-archivist
Avalon
r0zk0
Backwards
asaf-slook
Balance
kelly-milligan-x-amber-vittoria
Balletic
motus-art
Beauty in the Hurting
ryan-green
Bent
ippsketch
Blaschke Ballet
numbersinmotion
Blockbob Rorschach
eboy
Bloom
blockchance
Blooms
cory-haber
Bokeh (lamps)
mpkoz
Bokeh
mpkoz
Box Light Studies (sculpture)
zach-lieberman
Box Light Studies
zach-lieberman
BUSIEST
james-merrill
BUSY
james-merrill
Calian
eric-de-giuli
Cattleya
ben-snell
celestial cyclones
hideo
chaos comes with the summer haze
cole-sternberg
Chimera
mpkoz
Coalition
generative-artworks
Collapsed Sequence
toiminto
Coquina
jacob-gold
Cytographia
golan-levin
D-D-Dots
tuplart
Dendro
vebj-rn-isaksen
Diggly Collects All
dca
Dreams
joshua-bagley
Drift
paolo-ceric
Dustfold
lunarean
Ecumenopolis
joshua-bagley
Electriz
che-yu-wu
Empyrean
generative-artworks
Enchiridion
generative-artworks
Enigma
ralenarc
Essenza
stefano-contiero
Event Horizon Sunset (Series C)
jake-brukhman
Exstasis
grant-oesterling
Fell-Cloud
travess-smalley

最終更新 2026-07-16