perlin-noise

0.0.1 • Public • Published

perlin noise generator for node.js

Usage

var perlin = require('perlin-noise');
 
perlin.generatePerlinNoise(480, 480);

Documentation

generatePerlinNoise(width, height, options)

Returns a one-dimensional of length width * height in row-major order. That is, index = y * width + height.

Each value in the array will be between 0 and 1.

  • options (optional)
    • octaveCount - defaults to 4
    • amplitude - defaults to 0.1
    • persistence - defaults to 0.2

generateWhiteNoise(width, height)

Returns a one-dimensional of length width * height in row-major order. That is, index = y * width + height.

Each value in the array will be between 0 and 1.

Readme

Keywords

none

Package Sidebar

Install

npm i perlin-noise

Weekly Downloads

200

Version

0.0.1

License

BSD

Last publish

Collaborators

  • superjoe
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy