{"_id":"js.perlin","_rev":"5-d561bae5693c2f93e898544c6e95b7ed","name":"js.perlin","description":"Perlin noise implementation","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"author":{"name":"Mael Nison","email":"nison.mael@gmail.com","url":"http://www.arcastel.com/"},"name":"js.perlin","description":"Perlin noise implementation","version":"0.0.1","homepage":"http://github.com/arcanin/js.perlin/","repository":{"type":"git","url":"git://github.com/arcanin/js.perlin.git"},"main":"lib/perlin.js","engines":{"node":"~0.6.2"},"dependencies":{},"devDependencies":{},"_npmUser":{"name":"arcanis","email":"nison.mael@gmail.com"},"_id":"js.perlin@0.0.1","_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.6.2","_defaultsLoaded":true,"dist":{"shasum":"9d97f8ee89bb0b875b974a8de689708c78c44f3a","tarball":"https://registry.npmjs.org/js.perlin/-/js.perlin-0.0.1.tgz","integrity":"sha512-lmXrI2SSOZ0jQ1JB+8UNojbxoZdSq9IsLS/enSuaic4aoA1N5gVlrbXjF5Eh1Pgoyb+cLuJO3FN20ULkqy3ohw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFsbhXOXCVlfGvpP+cFfbvVDK2TOuaeqXqAxrhwXJICwIgRbBAjfx6Xz8mt9wwHqq4Kp1oYeNyXRzppDwd3DUSt94="}]},"maintainers":[{"name":"arcanis","email":"nison.mael@gmail.com"}]}},"readme":"# JS.Perlin\n\n## Installation\n\n```npm install js.perlin```\n\n## Usage\n\n- *new Perlin( [ table ] )*\n\nReturns a new generator instance. If `table` is set, then it will be used\nas random lookup table otherwise a random table will be generated.\n\n- *[instance].octaves*\n- *[instance].frequency*\n- *[instance].persistence*\n\nGenerator configurations variables.\n\n- *[instance].generate( start, size, callback )*\n\nThis function will call `callback()` for each pixel in the N-dimensional\nrange between `start` and `start+size`, with two parameters : the\ncoordinates of the current pixel, and the related Perlin value.\n\n```javascript\nvar Perlin = require( 'js.perlin' ).Perlin;\n\nvar map = new Perlin( );\n\nmap.generate( [ 0, 0 ], [ 2, 2 ], function ( point, value ) {\n    console.log( point, value );\n} );\n```\n\n## To do\n\nI need to :\n\n- Understand why implements Perlin.random as `Math.random( ) * 2 - 1`\n  just doesn't work.\n\n- Implement _real_ Perlin noises (standard & simplex).\n\nIf you can help me on one of these two issues, please feel free to post an issue\nand / or make pull requests !\n\n## Authors\n\nImplementation by Maël Nison, from Jeremy Cochoy's [paper][1].\n\n[1]: http://zenol.fr/dl/perlin_noise.pdf\n","maintainers":[{"name":"arcanis","email":"nison.mael@gmail.com"}],"time":{"modified":"2022-06-19T05:47:52.541Z","created":"2011-12-02T09:16:59.891Z","0.0.1":"2011-12-02T09:17:02.866Z"},"author":{"name":"Mael Nison","email":"nison.mael@gmail.com","url":"http://www.arcastel.com/"},"repository":{"type":"git","url":"git://github.com/arcanin/js.perlin.git"}}