https://github.com/leodeslf/perlin-noise
🏔 A Perlin Noise library for JavaScript.
https://github.com/leodeslf/perlin-noise
perlin-noise
Last synced: about 1 year ago
JSON representation
🏔 A Perlin Noise library for JavaScript.
- Host: GitHub
- URL: https://github.com/leodeslf/perlin-noise
- Owner: leodeslf
- License: mit
- Created: 2019-08-02T22:41:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-01T23:47:47.000Z (over 4 years ago)
- Last Synced: 2025-03-18T04:33:37.247Z (about 1 year ago)
- Topics: perlin-noise
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@leodeslf/perlin-noise
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Perlin Noise
```txt
_.~^~.__.~^~._
/~^~.______.~^~/\
/^~.________.~^/ /
/~^~.______.~^~/ /
/_.~^~.__.~^~._/ /
/_ /\___________\/
/._/ /
/~./ /
/^~/ /
\__\/
```
## About
A Perlin Noise library for JavaScript.
## Features
- `perlin1D`
- `perlin2D`
- `perlin3D`
- `perlin4D`
## Install
```bash
npm i @leodeslf/perlin-noise
```
## Usage
```javascript
import { perlin1D } from '@leodeslf/perlin-noise';
console.debug(perlin1D(0.125)); // -0.10894775390625
console.debug(perlin1D(0.120)); // -0.1056811008
console.debug(perlin1D(0.115)); // -0.10229407794375
```
[Live demo here](https://leodeslf.github.io/perlin-noise/ "GitHub Pages") (1D, 2D, 3D, and 4D).
## Author
[Leonardo de S.L.F](https://github.com/leodeslf "GitHub profile").
## License
MIT License.