Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avaer/fast-uniform-noise
https://github.com/avaer/fast-uniform-noise
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/avaer/fast-uniform-noise
- Owner: avaer
- Created: 2016-03-23T05:35:01.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-04T16:52:30.000Z (over 7 years ago)
- Last Synced: 2024-10-09T19:23:40.498Z (3 months ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```