Package Exports
- @zayesh/noise
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@zayesh/noise) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Noise
A 2d noise texture generator that implements bilinear smoothing and turbulence.
Installation
$ npm install @zayesh/noiseUsage
import Noise from "@zayesh/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

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