Perlin / Simplex Noise

First appeared 1983 · Ken Perlin — Ken Perlin (1983; "An Image Synthesizer", 1985; Simplex/Improving Noise, 2002). · timeline ↗

third-party / eponym Name — An eponym conferred by others: Perlin published the technique as "noise" (e.g. "An Image Synthesizer", 1985), not under his own name. The personal name "Perlin noise" was institutionally ratified by 1997, when the Academy of Motion Picture Arts and Sciences awarded him a Technical Achievement Award "for the development of Perlin Noise". The exact coiner and first attested use of the name are not established here (to be confirmed).

In one line A gradient-noise function that turns a regular lattice of pseudo-random gradients into a smooth, continuous, repeatable field. In generative art it is the workhorse for organic randomness — driving colour, position, density and motion without harsh jumps.

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

The code

The actual sketch behind the demo above — sandboxed and reproducible. This is the whole thing.

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;
        }
      }
    }
  }
}

Open the demo source ↗

How it works

Assign a fixed pseudo-random gradient vector to each integer lattice point. To evaluate the noise at a point: 1. Find the surrounding lattice cell and the point's fractional position in it. 2. For each corner, take the dot product of that corner's gradient with the vector from the corner to the point. 3. Interpolate those corner values together using a smoothstep-style fade curve (6t⁵−15t⁴+10t³), which keeps first/second derivatives continuous. The result is smooth, band-limited noise. Summing several octaves (each at double frequency and half amplitude — "fractal Brownian motion") adds detail at multiple scales. Simplex noise replaces the square lattice with a simplex grid for fewer directional artifacts and cheaper scaling to higher dimensions.

Parameters

Lineage

Precedents
Ken Perlin
Related
Flow Field / Vector Field, Domain Warping

Frequently combined with

Works using this algorithm (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

Last updated 2026-07-16