{"bugs":{"url":"https://github.com/josephg/noisejs/issues"},"dist":{"shasum":"3d6e6485d3b79e6a95a8c1ece54c653e03033ff4","tarball":"https://registry.npmjs.org/noisejs/-/noisejs-2.0.0.tgz","integrity":"sha512-C4FYO7060knByWf3yIgRcD5rf7b7dMOs1sRaGXXCoo1PdlGzp5YOIqpVWLicM95Rsw4oFj/NPdDCMgfZctequg==","signatures":[{"sig":"MEUCIBW0zXryMpxqHnzhO55vuDaIdCzK5D8t3zqUr2f1pc7YAiEAun9kZwQ9pp5qIIJe196V5AA44b05ApCy30d9FTIv7vw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","name":"noisejs","_from":".","author":{"name":"Joseph Gentle"},"readme":"# NOISE!\n\nThis is a simple library for 2d & 3d perlin noise and simplex noise in javascript. Noise is [pretty](https://dl.dropbox.com/u/2494815/perlin/index.html).\n\nThe library is pretty fast (10M queries / sec). But its still way slower than using a shader. For example, if you try and update an entire screen's worth of pixels, it'll be [slow](http://josephg.github.com/noisejs/demo3d.html).\n\nThe code is based on Stefan Gustavson's implementation. Do whatever you want with it, etc.\n\n## How to make noise:\n\n```javascript\nvar noise = new Noise();\nnoise.seed(Math.random());\n\nfor (var x = 0; x < canvas.width; x++) {\n  for (var y = 0; y < canvas.height; y++) {\n    // noise.simplex2 and noise.perlin2 return values between -1 and 1.\n    var value = noise.simplex2(x / 100, y / 100);\n\n    image[x][y].r = Math.abs(value) * 256; // Or whatever. Open demo.html to see it used with canvas.\n  }\n}\n```\n\nThe library exposes a constructor function called `Noise` with the following instance methods:\n\n- **simplex2(x, y)**: 2D Simplex noise function\n- **simplex3(x, y, z)**: 3D Simplex noise function\n- **perlin2(x, y)**: 2D Perlin noise function\n- **perlin3(x, y, z)**: 3D Perlin noise function\n- **seed(val)**: Seed the noise functions. Only 65536 different seeds are supported. Use a float between 0 and 1 or an integer from 1 to 65536.\n\n","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"xixixao","email":"xixixao@seznam.cz"},"keywords":["perlin","noise","simplex"],"repository":{"url":"https://github.com/xixixao/noisejs.git","type":"git"},"_npmVersion":"1.3.11","description":"Perlin noise implementation","maintainers":[{"name":"xixixao","email":"xixixao@seznam.cz"}],"readmeFilename":"README.md","_id":"noisejs@2.0.0","version":"2.0.0"}