Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/avaer/fast-uniform-noise


https://github.com/avaer/fast-uniform-noise

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

Simplex noise scaled to a uniform distribution.

Based on https://github.com/joshforisha/fast-simplex-noise-js. Scales that algorithm via a pre-sampled histogram to generate noise with the same properties, only scaled to return values from a roughly uniform distribution.

```
const fastUniformNoise = require('fast-uniform-noise');
const noiser = new fastUniformNoise({
// takes the same options as fast-simplex-noise
random: Math.random
});
noiser.in2D(100, 100); // the only function currently supported
```