Skip to content

simplex2D

simplex2D(x, y, seed?): number

Defined in: src/modules/noise/noise.ts:325

Ken Perlin’s simplex noise, 2D — gradient noise on a triangular lattice, so it has less directional bias than perlin2D and no axis-aligned artifacts. The usual choice for organic 2D terrain.

Uses the canonical 70 scaling; paired with unit-length gradients (as here) that puts the practical peak at about 0.71 rather than 1 — still inside [-1, 1], but scale by amplitude if you need the full swing.

number

number

number = 0

number