@leodeslf/simplex-noise

1.0.0 • Public • Published

Simplex Noise

       ______________
      /\            /\
     /\/\  ________/\/\
    /\/\/\/        \/\/    
    \/\/\/\_________\/
     \/\/           /\
      \/_________  /\/\
      /\         \/\/\/\
     /\/\________/\/\/\/
     \/\/          \/\/
      \/____________\/

About

A Simplex Noise library for JavaScript.

Functions

  • simplex2D
  • simplex3D
  • simplex4D

Install

npm i @leodeslf/simplex-noise

Example

import { simplex4D } from '@leodeslf/simplex-noise';

console.debug(simplex4D(0, 3, 6, 9.125)); // 0.15430952439664875
console.debug(simplex4D(0, 3, 6, 9.120)); // 0.16308260031261898
console.debug(simplex4D(0, 3, 6, 9.115)); // 0.17172544402554224

Author

Leonardo de S.L.F, original implementation by Stefan Gustavson (Java).

License

MIT License.

Readme

Keywords

Package Sidebar

Install

npm i @leodeslf/simplex-noise

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

17 kB

Total Files

4

Last publish

Collaborators

  • leodeslf