fast-uniform-noise

Simplex noise scaled to a uniform distribution

ISC 6 个版本
安装
npm install fast-uniform-noise
yarn add fast-uniform-noise
pnpm add fast-uniform-noise
bun add fast-uniform-noise
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
版本列表
0.0.6 2017-09-04
0.0.5 2017-09-04
0.0.4 2016-04-03
0.0.3 2016-03-23
0.0.2 2016-03-23
0.0.1 2016-03-23