JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1273
  • Score
    100M100P100Q111285F
  • License Unlicense

A TypeScript implementation of faster simplex noise

Package Exports

  • fast-simplex-noise

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fast-simplex-noise) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Fast Simplex Noise

A TypeScript implementation of the improved, faster Simplex algorithm outlined in Stefan Gustavson's Simplex noise demystified.

See fractal-noise-js (Deno: fractal_noise, NPM: fractal-noise) for higher order noise shapes.

API

Each make function takes a random function (() => number)) as its argument, defaulting to Math.random.

makeNoise2D (random = Math.random): (x: number, y: number) => number

Returns a two-dimensional noise generation function.

makeNoise3D (random = Math.random): (x: number, y: number, z: number) => number

Returns a three-dimensional noise generation function.

makeNoise4D (random = Math.random): (x: number, y: number, z: number, w: number) => number

Returns a four-dimensional noise generation function.