https://github.com/leodeslf/simplex-noise
🚅 A Simplex Noise library for JavaScript
https://github.com/leodeslf/simplex-noise
simplex-noise
Last synced: 10 months ago
JSON representation
🚅 A Simplex Noise library for JavaScript
- Host: GitHub
- URL: https://github.com/leodeslf/simplex-noise
- Owner: leodeslf
- License: mit
- Created: 2021-10-29T22:08:10.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-20T14:54:54.000Z (about 4 years ago)
- Last Synced: 2025-03-18T04:33:37.793Z (10 months ago)
- Topics: simplex-noise
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@leodeslf/simplex-noise
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simplex Noise
```txt
______________
/\ /\
/\/\ ________/\/\
/\/\/\/ \/\/
\/\/\/\_________\/
\/\/ /\
\/_________ /\/\
/\ \/\/\/\
/\/\________/\/\/\/
\/\/ \/\/
\/____________\/
```
## About
A Simplex Noise library for JavaScript.
## Functions
- `simplex2D`
- `simplex3D`
- `simplex4D`
## Install
```bash
npm i @leodeslf/simplex-noise
```
## Example
```javascript
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](https://github.com/leodeslf "GitHub profile"), original implementation by Stefan Gustavson (Java).
## License
MIT License.