{"_id":"quad-indices","_rev":"8-dd267a3965c23b856b08c4db1590b389","name":"quad-indices","description":"creates the indices for a quad (two triangles)","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"quad-indices","version":"1.0.0","description":"creates the indices for a quad (two triangles)","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"dtype":"^0.1.0"},"devDependencies":{"tape":"^3.5.0"},"scripts":{"test":"node test.js"},"keywords":["quad","gl","stack.gl","ecosystem:stackgl","mesh","cells","elements","indicesindex","indexed","sprite","batch","vertices"],"repository":{"type":"git","url":"git://github.com/Jam3/quad-indices.git"},"homepage":"https://github.com/Jam3/quad-indices","bugs":{"url":"https://github.com/Jam3/quad-indices/issues"},"gitHead":"8b6954424a3c42c80c2f39efe5a17b4652743f0a","_id":"quad-indices@1.0.0","_shasum":"6040afd2e6d0f7ececce5437e7d56203280a1435","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"6040afd2e6d0f7ececce5437e7d56203280a1435","tarball":"https://registry.npmjs.org/quad-indices/-/quad-indices-1.0.0.tgz","integrity":"sha512-iKWQfc1gaVioA32MZVtrQVZph114UvEvo7cNfPQ8OdVVwyigs7+e57c29Z3H9U7LbZzmPf5R6L9QvkuIOvG9uw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFBBSmTG2BUNjgTtzPEi15PCJRq6ra78c4rU0WtLoAJTAiEAxffj0MRmlCPjULYZzATeKywroNRNNhapbw+w2+AD7Is="}]}},"1.1.0":{"name":"quad-indices","version":"1.1.0","description":"creates the indices for a quad (two triangles)","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"dtype":"^1.0.0"},"devDependencies":{"tape":"^3.5.0"},"scripts":{"test":"node test.js"},"keywords":["quad","gl","stack.gl","ecosystem:stackgl","mesh","cells","elements","indicesindex","indexed","sprite","batch","vertices"],"repository":{"type":"git","url":"git://github.com/Jam3/quad-indices.git"},"homepage":"https://github.com/Jam3/quad-indices","bugs":{"url":"https://github.com/Jam3/quad-indices/issues"},"gitHead":"2431857143da133191b7c46997422916e5b37530","_id":"quad-indices@1.1.0","_shasum":"fd87ffe64c7d99de243a4197626989e5e3c4fa2b","_from":".","_npmVersion":"2.8.2","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"dist":{"shasum":"fd87ffe64c7d99de243a4197626989e5e3c4fa2b","tarball":"https://registry.npmjs.org/quad-indices/-/quad-indices-1.1.0.tgz","integrity":"sha512-34swRap9u47Br/9XHkD8CwOHiFwqoei/+h03kooAyYzLEbIOMLPUUj+csBWxMcH5GGwvipncL4Zf6pjRfpYCVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDUNjsUU9ljKyrqPl1swvboPjRWxJNzRkwcPUVO1MF8AAiAEChsCRBLnOCd7IHZpoH9RJUM2RGgmN5OcEg62DzpSyA=="}]},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}]},"1.2.0":{"name":"quad-indices","version":"1.2.0","description":"creates the indices for a quad (two triangles)","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"an-array":"^1.0.0","dtype":"^1.0.0","is-buffer":"^1.0.2"},"devDependencies":{"buffer-equals":"^1.0.3","tape":"^3.5.0"},"scripts":{"test":"node test.js"},"keywords":["quad","gl","stack.gl","ecosystem:stackgl","mesh","cells","elements","indicesindex","indexed","sprite","batch","vertices"],"repository":{"type":"git","url":"git://github.com/Jam3/quad-indices.git"},"homepage":"https://github.com/Jam3/quad-indices","bugs":{"url":"https://github.com/Jam3/quad-indices/issues"},"gitHead":"effb6d730f9ddc4e9fb87af5d7078660dd6b3fdf","_id":"quad-indices@1.2.0","_shasum":"f7addfd4f654dc808911810be7eb11cf38d7fc4b","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"dist":{"shasum":"f7addfd4f654dc808911810be7eb11cf38d7fc4b","tarball":"https://registry.npmjs.org/quad-indices/-/quad-indices-1.2.0.tgz","integrity":"sha512-Y8pZyTvipKFSmnk34jrqvw1PrTj2x+OS/slPlNLAgJkp7mffDi39PdpwA9ohvrT1C7nOHU9J59e+dNRSCqF1iQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFcL6luj64Qwuf4VV0YaHEyvEvPWqxz6l7piofi2z7IQAiEA2s17iH4rbnt7Y20dLsedvKA8ppWCYs/THfil/d5VZ1Y="}]},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}]},"2.0.0":{"name":"quad-indices","version":"2.0.0","description":"creates the indices for a quad (two triangles)","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"an-array":"^1.0.0","dtype":"^1.0.0","is-buffer":"^1.0.2"},"devDependencies":{"buffer-equals":"^1.0.3","tape":"^3.5.0"},"scripts":{"test":"node test.js"},"keywords":["quad","gl","stack.gl","ecosystem:stackgl","mesh","cells","elements","indicesindex","indexed","sprite","batch","vertices"],"repository":{"type":"git","url":"git://github.com/Jam3/quad-indices.git"},"homepage":"https://github.com/Jam3/quad-indices","bugs":{"url":"https://github.com/Jam3/quad-indices/issues"},"gitHead":"7cc4d315d5fe721174a59ffdb995f634119a1bd3","_id":"quad-indices@2.0.0","_shasum":"e3e116c0284182bc5365d2f29a7d21473106738b","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"dist":{"shasum":"e3e116c0284182bc5365d2f29a7d21473106738b","tarball":"https://registry.npmjs.org/quad-indices/-/quad-indices-2.0.0.tgz","integrity":"sha512-1Iemnc3UNPz1wGFfQB+nQG34GO8IYsFD8aiK3D6Z9uCpDRkZz1V5V1fCov2nMHJlJf4PQIv4ZchL4C2S7uVdkA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFnzKoL+PV0cfFfUVHTSfGzZamaVcAIOMmHU9pWDb3PDAiEAnacsOnDwZlESjHKE0c0QDp57yXCYhSEiYDXe+68NP48="}]},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}]},"2.0.1":{"name":"quad-indices","version":"2.0.1","description":"creates the indices for a quad (two triangles)","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"an-array":"^1.0.0","dtype":"^2.0.0","is-buffer":"^1.0.2"},"devDependencies":{"buffer-equals":"^1.0.3","tape":"^3.5.0"},"scripts":{"test":"node test.js"},"keywords":["quad","gl","stack.gl","ecosystem:stackgl","mesh","cells","elements","indicesindex","indexed","sprite","batch","vertices"],"repository":{"type":"git","url":"git://github.com/Jam3/quad-indices.git"},"homepage":"https://github.com/Jam3/quad-indices","bugs":{"url":"https://github.com/Jam3/quad-indices/issues"},"gitHead":"7042cedd9588ddc4279b217fee86d5c3c01b007b","_id":"quad-indices@2.0.1","_shasum":"a6941d89a13d63eed6c1d4a5a621a0463617a814","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"dist":{"shasum":"a6941d89a13d63eed6c1d4a5a621a0463617a814","tarball":"https://registry.npmjs.org/quad-indices/-/quad-indices-2.0.1.tgz","integrity":"sha512-6jtmCsEbGAh5npThXrBaubbTjPcF0rMbn57XCJVI7LkW8PUT56V+uIrRCCWCn85PSgJC9v8Pm5tnJDwmOBewvA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICAUcPXeLBXO71fP+I1vO+LVwBtkJiMF9V+CcP/8X/nhAiEAs5u1Ho9NagqesPmDlYvGKQC8Q5Xu8ebT7Q6835VDyDo="}]},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}]}},"readme":"# quad-indices\n\n[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)\n\nCreates the indices for a quad mesh (two triangles), ideal for sprites, 2D lines, font glyphs, billboards, and other features. \n\n```js\nvar createIndices = require('quad-indices')\n\n//basic usage:\nvar quad = createIndices()\n// --> new Uint16Array([0, 1, 2, 0, 2, 3])\n\n//N quads, array type:\nvar quad = createIndices({ count: 2, type: 'array' })\n// --> [0, 1, 2, 0, 2, 3, 4, 5, 6, 4, 6, 7]\n\n//counter-clockwise\nvar quad = createIndices({ clockwise: false })\n// --> new Uint16Array([0, 1, 2, 2, 1, 3])\n\n//store in existing array\nvar array = new Uint16Array(12)\ncreateIndices(array, { start: 6 })\n// --> new Uint16Array([0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 2, 3])\n```\n\n## Usage\n\n[![NPM](https://nodei.co/npm/quad-indices.png)](https://www.npmjs.com/package/quad-indices)\n\n#### `quad = createIndices([array], [opt])`\n\nCreates the indices for a quad mesh. Both parameters are optional.\n\nIf `array` is provided and is a Buffer or array-like object, it will be used as output instead of creating a new object.\n\nPossible options:\n\n- `count` the number of quads to index, default 1\n- `type` (string) the [dtype](https://www.npmjs.com/package/dtype) of the returned array, default '\"uint16\"'\n- `clockwise` (boolean) the orientation of the indices, default true\n- `start` the starting index to place the data into the array, default 0\n\n## License\n\nMIT, see [LICENSE.md](http://github.com/Jam3/quad-indices/blob/master/LICENSE.md) for details.\n","maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"time":{"modified":"2022-06-25T05:50:10.299Z","created":"2015-03-06T17:09:56.952Z","1.0.0":"2015-03-06T17:09:56.952Z","1.1.0":"2015-05-07T15:03:45.195Z","1.2.0":"2015-05-16T17:01:44.028Z","2.0.0":"2015-05-25T20:26:57.789Z","2.0.1":"2015-05-25T20:30:59.379Z"},"homepage":"https://github.com/Jam3/quad-indices","keywords":["quad","gl","stack.gl","ecosystem:stackgl","mesh","cells","elements","indicesindex","indexed","sprite","batch","vertices"],"repository":{"type":"git","url":"git://github.com/Jam3/quad-indices.git"},"author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"bugs":{"url":"https://github.com/Jam3/quad-indices/issues"},"license":"MIT","readmeFilename":"README.md"}