{"_id":"adaptive-bezier-curve","_rev":"10-8bf4ba349e5b0d89528717e79db84e42","name":"adaptive-bezier-curve","description":"adaptive and scalable 2D bezier curves","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"adaptive-bezier-curve","version":"1.0.0","description":"adaptive and scalable 2D bezier curves","main":"index.js","license":"BSD-3-Clause","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"bezier":"^0.1.0"},"devDependencies":{"canvas-testbed":"^1.0.2","tape":"^3.0.1"},"scripts":{"test":"node test.js"},"keywords":["bezier","quadratic","curve","adaptive","approximate","quadraticCurveTo","bezierCurveTo","line","path","rendering","canvas","draw","drawing","webgl","segments"],"repository":{"type":"git","url":"git://github.com/mattdesl/adaptive-bezier-curve.git"},"homepage":"https://github.com/mattdesl/adaptive-bezier-curve","bugs":{"url":"https://github.com/mattdesl/adaptive-bezier-curve/issues"},"gitHead":"81b0b08dfac67ab5adfb49c6f12051647b9d0632","_id":"adaptive-bezier-curve@1.0.0","_shasum":"7c1c7362d011821017825f46d558881b9f8981d7","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"7c1c7362d011821017825f46d558881b9f8981d7","tarball":"https://registry.npmjs.org/adaptive-bezier-curve/-/adaptive-bezier-curve-1.0.0.tgz","integrity":"sha512-wZsx5xhwVtdt7boAt7+m5k9L4DM2e/KqmrRpjIS3Mt1d+OEyZl68UwI/KHPsjumu0Ma0+E/THNKHzPGFdOz40g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHTAuR1G0KtySxXFyEnGM5lpBZ5pwkjzbL/jepkxhziTAiEAqPJKZN3KKfdPmM2V+y+TJ7H7SQZCA7XSHqzmyUa5lcI="}]}},"1.0.1":{"name":"adaptive-bezier-curve","version":"1.0.1","description":"adaptive and scalable 2D bezier curves","main":"index.js","license":"BSD-3-Clause","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{},"devDependencies":{"canvas-testbed":"^1.0.2","tape":"^3.0.1"},"scripts":{"test":"node test.js"},"keywords":["bezier","quadratic","curve","adaptive","approximate","quadraticCurveTo","bezierCurveTo","line","path","rendering","canvas","draw","drawing","webgl","segments"],"repository":{"type":"git","url":"git://github.com/mattdesl/adaptive-bezier-curve.git"},"homepage":"https://github.com/mattdesl/adaptive-bezier-curve","bugs":{"url":"https://github.com/mattdesl/adaptive-bezier-curve/issues"},"gitHead":"c58d29556822e8edbaa32d0217a3427eb1e2d1c8","_id":"adaptive-bezier-curve@1.0.1","_shasum":"1a63a72ebda7aa6cb69f5f16fc060cd0f95b8cc8","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"1a63a72ebda7aa6cb69f5f16fc060cd0f95b8cc8","tarball":"https://registry.npmjs.org/adaptive-bezier-curve/-/adaptive-bezier-curve-1.0.1.tgz","integrity":"sha512-D3j+prC5pVjQ7xt1u/Ep8m2uH7soD2TBv0oWA77+likyY6zkcfJssstOvRJ11ePy5kRB+V+5grwW3HfGZmpmcg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGefh3anMtQ+iaPKDoN5shwIyjLEr7nSbcOjzD6hVHS1AiB6iitr60Ku+DfdhhG9qcmviUhQ1iSoi2YOBq9soSbVZQ=="}]}},"1.0.2":{"name":"adaptive-bezier-curve","version":"1.0.2","description":"adaptive and scalable 2D bezier curves","main":"index.js","license":"BSD-3-Clause","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{},"devDependencies":{"canvas-testbed":"^1.0.2","tape":"^3.0.1"},"scripts":{"test":"node test.js"},"keywords":["bezier","quadratic","curve","adaptive","approximate","quadraticCurveTo","bezierCurveTo","line","path","rendering","canvas","draw","drawing","webgl","segments"],"repository":{"type":"git","url":"git://github.com/mattdesl/adaptive-bezier-curve.git"},"homepage":"https://github.com/mattdesl/adaptive-bezier-curve","bugs":{"url":"https://github.com/mattdesl/adaptive-bezier-curve/issues"},"gitHead":"a4f473e19497198aae39bf2e2c77e051d2f5b5ad","_id":"adaptive-bezier-curve@1.0.2","_shasum":"d28df07cba083729550685083fd1bc8bf54494ac","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"d28df07cba083729550685083fd1bc8bf54494ac","tarball":"https://registry.npmjs.org/adaptive-bezier-curve/-/adaptive-bezier-curve-1.0.2.tgz","integrity":"sha512-Bgg34nlgYhBo8WI5WZHtA9h2wXkC0fUYPHRwGH7PhMtn4OMEvjPgtcteeVLHH/j7uMRVzU7WoW2i9GMi27MeSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIExyKw77edGni2wiV+NIoxo9jb+BDYypK8P5qy3fLesmAiEA/tBCtkVWTEBh48qiFEidQeFA8WDZpXlXbxnLRIR5otc="}]}},"1.0.3":{"name":"adaptive-bezier-curve","version":"1.0.3","description":"adaptive and scalable 2D bezier curves","main":"index.js","license":"BSD-3-Clause","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{},"devDependencies":{"canvas-testbed":"^1.0.2","tape":"^3.0.1"},"scripts":{"test":"node test.js"},"keywords":["bezier","quadratic","curve","adaptive","approximate","quadraticCurveTo","bezierCurveTo","line","path","rendering","canvas","draw","drawing","webgl","segments"],"repository":{"type":"git","url":"git://github.com/mattdesl/adaptive-bezier-curve.git"},"homepage":"https://github.com/mattdesl/adaptive-bezier-curve","bugs":{"url":"https://github.com/mattdesl/adaptive-bezier-curve/issues"},"gitHead":"f7638c831f58a97d58dd43bd8c5a5ed9ac901f23","_id":"adaptive-bezier-curve@1.0.3","_shasum":"477577abe87d7280d46ca41649f6c22646fe8227","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"477577abe87d7280d46ca41649f6c22646fe8227","tarball":"https://registry.npmjs.org/adaptive-bezier-curve/-/adaptive-bezier-curve-1.0.3.tgz","integrity":"sha512-mDcwN284LlNAdunqnVmS0PAoDNHKze/PY8zvpCdxzyXD+ZZFeMWQ3FKNBw0VMOd9IfnhIyzAWJDXzRcWnXtoSg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuH7n8lbokPpXcMzFwGAMTRMBqPeOZL6PxP7/5sMDXWQIgH+4LUbvtSW1wuyOqydyK02Lm5MSG3vPXbhdD2BkqwaY="}]}}},"readme":"# adaptive-bezier-curve\n\n[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)\n\nBuilds a bezier curve that is adaptive; that is to say, it has more points along curved corners, and less points along straight lines. This can be used to produce scalable curves that are consistently smooth, while using a small number of steps. Based on [AntiGrain](http://antigrain.com/research/adaptive_bezier/).\n\nAlso see [adaptive-quadratic-curve](https://nodei.co/npm/adaptive-quadratic-curve/).\n\n```js\nvar bezier = require('adaptive-bezier-curve')\n\nvar start = [20, 20],\n    c1 = [100, 159],\n    c2 = [50, 200],\n    end = [200, 20],\n    scale = 2\n\nvar points = bezier(start, c1, c2, end, scale)\n\n//returns a list of 2d points: [ [x,y], [x,y], [x,y] ... ]\n```\n\nSee [demo/index.js](demo/index.js) for an example with HTML5 canvas.\n\n![img](http://i.imgur.com/iEQCFY3.png)\n\n## Usage\n\n[![NPM](https://nodei.co/npm/adaptive-bezier-curve.png)](https://nodei.co/npm/adaptive-bezier-curve/)\n\n#### `bezier(start, c1, c2, end[, scale, points])`\n\nReturns an adaptive bezier curve for the given four control points. You can specify a `scale` to produce better smoothing for scaled contexts, otherwise it defaults to 1.0.\n\nIf you specify a `points` array, the new points will be pushed onto that array (useful for building paths). If you don't specify `points`, a new array will be used.\n\n## License\n\nThe AntiGrain 2.4 code is licensed under BSD-3-Clause, see [LICENSE.md](http://github.com/mattdesl/adaptive-bezier-curve/blob/master/LICENSE.md) for details.\n","maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"time":{"modified":"2022-06-13T02:25:01.478Z","created":"2014-11-01T23:18:16.154Z","1.0.0":"2014-11-01T23:18:16.154Z","1.0.1":"2014-11-01T23:30:42.019Z","1.0.2":"2014-11-02T15:05:27.057Z","1.0.3":"2014-11-02T15:06:07.779Z"},"homepage":"https://github.com/mattdesl/adaptive-bezier-curve","keywords":["bezier","quadratic","curve","adaptive","approximate","quadraticCurveTo","bezierCurveTo","line","path","rendering","canvas","draw","drawing","webgl","segments"],"repository":{"type":"git","url":"git://github.com/mattdesl/adaptive-bezier-curve.git"},"author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"bugs":{"url":"https://github.com/mattdesl/adaptive-bezier-curve/issues"},"license":"BSD-3-Clause","readmeFilename":"README.md"}