# fast-simplex-noise

> A TypeScript implementation of faster simplex noise

Latest version **4.0.0** (published 2021-04-28) · Unlicense license · 0 weekly downloads

## Install

```sh
npm install fast-simplex-noise
pnpm add fast-simplex-noise
yarn add fast-simplex-noise
bun add fast-simplex-noise
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2021-04-28 |
| First published | 2015-02-28 |
| Weekly downloads | 0 |
| License | Unlicense |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 31.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 66 |
| Author | Josh Forisha |
| Maintainers | joshforisha |
| Keywords | noise, perlin, random, simplex |

## Links

- npm: https://www.npmjs.com/package/fast-simplex-noise
- Repository: https://github.com/joshforisha/fast-simplex-noise-js
- Issues: https://github.com/joshforisha/fast-simplex-noise-js/issues
- npm.io page: https://npm.io/package/fast-simplex-noise

## Recent versions

- 4.0.0 (latest) — 2021-04-28
- 3.2.1 — 2019-02-26
- 3.2.0 — 2016-11-28
- 3.1.0 — 2016-11-26
- 3.0.0 — 2016-11-23
- 3.0.0-pre.6 — 2016-11-23
- 3.0.0-pre.5 — 2016-11-23
- 3.0.0-pre.4 — 2016-11-14
- 3.0.0-pre.3 — 2016-11-14
- 3.0.0-pre.2 — 2016-11-14
- 3.0.0-pre.1 — 2016-11-14
- 2.2.0 — 2016-08-12
- 2.1.1 — 2016-02-29
- 2.1.0 — 2016-02-21
- 2.0.0 — 2016-01-30
- … 10 more at https://npm.io/package/fast-simplex-noise/versions

## README

# Fast Simplex Noise

A TypeScript implementation of the improved, faster Simplex algorithm outlined in Stefan Gustavson's [Simplex noise demystified](http://webstaff.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf).

* Deno module: [https://deno.land/x/fast_simplex_noise](https://deno.land/x/fast_simplex_noise)
* NPM package: [fast-simplex-noise](https://www.npmjs.com/package/fast-simplex-noise)

See [fractal-noise-js](https://github.com/joshforisha/fractal-noise-js) (Deno: [fractal_noise](https://deno.land/x/fractal_noise), NPM: [fractal-noise](https://www.npmjs.com/package/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.

---
_Source: https://npm.io/package/fast-simplex-noise · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
