{"bugs":{"url":"https://github.com/josephg/noisejs/issues"},"dist":{"shasum":"84b4c4cd04ff43367034f65253e213e0d9fe1aff","tarball":"https://registry.npmjs.org/noisejs/-/noisejs-2.1.0.tgz","integrity":"sha512-sw39KaUS2YBta6apZ0/H+nnCsUyxT/ZRxgv/HnDxx6pWO2e2nUmWgLhpOaQdlxxkFepIpxDrlXy3fHVx0S3SLg==","signatures":[{"sig":"MEQCIDjchpTcrQ9S/wJu4DVu4d3LqKsbnbWpdtYkOxYXTfW1AiAqTGUF1JhqwMChaguzVEinKT2/dSI1O4VFcenDtfMyXQ==","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\n// value passed into the constructor is used as a seed\nvar noise = new Noise(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.1.0","version":"2.1.0"}