@vanruesc/noise

0.0.4 • Public • Published

Noise

Build status Windows build status GitHub version npm version Dependencies

A 2D noise texture generator that implements bilinear smoothing and turbulence.

Installation

This module can be installed from npm.

$ npm install @vanruesc/noise

Usage

import Noise from "@vanruesc/noise";

var noise = new Noise(800, 600);
var data = noise.generate();
# CLI when used in an npm script.
noise -w 1920 -h 1080 -p 0 -o myTexture

# The generated file will be stored in the output folder.
  Optional arguments:
    -w      Width, Number.
    -h      Height, Number.
    -p      Pattern, Number (0, 1, 2).
    -a      Turbulence power, Number.
    -b      Turbulence size, Number.
    -c      Repetition x, Number.
    -d      Repetition y, Number.
    -n, -o  Name of the output file, String.

Examples

Clouds Marble Wood

Documentation

API

License

Copyright (c) 2015 Raoul van Rüschen
Licensed under the Zlib license.

Dependencies (2)

Dev Dependencies (7)

Package Sidebar

Install

npm i @vanruesc/noise

Weekly Downloads

1

Version

0.0.4

License

Zlib

Last publish

Collaborators

  • vanruesc