{"_id":"noisejs","_rev":"11-cb74bbbaf74f61b694cdb59c803bfadc","name":"noisejs","description":"Perlin noise implementation","dist-tags":{"latest":"2.1.0"},"versions":{"2.0.0":{"name":"noisejs","version":"2.0.0","description":"Perlin noise implementation","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/xixixao/noisejs.git"},"keywords":["perlin","noise","simplex"],"author":{"name":"Joseph Gentle"},"bugs":{"url":"https://github.com/josephg/noisejs/issues"},"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","readmeFilename":"README.md","_id":"noisejs@2.0.0","dist":{"shasum":"3d6e6485d3b79e6a95a8c1ece54c653e03033ff4","tarball":"https://registry.npmjs.org/noisejs/-/noisejs-2.0.0.tgz","integrity":"sha512-C4FYO7060knByWf3yIgRcD5rf7b7dMOs1sRaGXXCoo1PdlGzp5YOIqpVWLicM95Rsw4oFj/NPdDCMgfZctequg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBW0zXryMpxqHnzhO55vuDaIdCzK5D8t3zqUr2f1pc7YAiEAun9kZwQ9pp5qIIJe196V5AA44b05ApCy30d9FTIv7vw="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"xixixao","email":"xixixao@seznam.cz"},"maintainers":[{"name":"xixixao","email":"xixixao@seznam.cz"}]},"2.1.0":{"name":"noisejs","version":"2.1.0","description":"Perlin noise implementation","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/xixixao/noisejs.git"},"keywords":["perlin","noise","simplex"],"author":{"name":"Joseph Gentle"},"bugs":{"url":"https://github.com/josephg/noisejs/issues"},"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","readmeFilename":"README.md","_id":"noisejs@2.1.0","dist":{"shasum":"84b4c4cd04ff43367034f65253e213e0d9fe1aff","tarball":"https://registry.npmjs.org/noisejs/-/noisejs-2.1.0.tgz","integrity":"sha512-sw39KaUS2YBta6apZ0/H+nnCsUyxT/ZRxgv/HnDxx6pWO2e2nUmWgLhpOaQdlxxkFepIpxDrlXy3fHVx0S3SLg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDjchpTcrQ9S/wJu4DVu4d3LqKsbnbWpdtYkOxYXTfW1AiAqTGUF1JhqwMChaguzVEinKT2/dSI1O4VFcenDtfMyXQ=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"xixixao","email":"xixixao@seznam.cz"},"maintainers":[{"name":"xixixao","email":"xixixao@seznam.cz"}]}},"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","maintainers":[{"name":"xixixao","email":"xixixao@seznam.cz"}],"time":{"modified":"2022-06-22T04:38:21.079Z","created":"2013-11-06T22:18:52.099Z","2.0.0":"2013-11-06T22:18:54.739Z","2.1.0":"2013-11-07T02:06:56.511Z"},"author":{"name":"Joseph Gentle"},"repository":{"type":"git","url":"https://github.com/xixixao/noisejs.git"},"users":{"billautomata":true,"defmech":true,"jacob-beltran":true}}