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-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 ノイズは正方格子を単体格子に置き換え、方向アーティファクトを減らし高次元化を安価にする。
パラメータ
octaves: number — Number of noise layers summed (fractal Brownian motion); more octaves add finer detail.frequency: number — Base spatial frequency; higher values make the pattern vary more rapidly across the canvas.persistence: number — Amplitude falloff per octave (commonly 0.5); how much each finer octave contributes.lacunarity: number — Frequency multiplier per octave (commonly 2); the spacing of detail across octaves.seed: number — Initialises the permutation/gradient table so the field is reproducible.
系譜
よく組み合わされるアルゴリズム
- Fragment Shader (GLSL) · 56 作品
- HSL / Hue Cycle · 55 作品
- Flow Field / Vector Field · 34 作品
- Bezier / Catmull-Rom Splines · 27 作品
- Marching Squares / Contours · 13 作品
- Particle System · 13 作品
- 3D Mesh / Geometry · 10 作品
- Raymarching with SDFs · 10 作品
- Plotter-style Hatching · 9 作品
- Instanced Geometry · 8 作品
- Glitch / Datamosh · 7 作品
- Quadtree / Recursive Quad Split · 7 作品
このアルゴリズムを使う作品 (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