{"_id":"gl-constants","_rev":"392437","name":"gl-constants","description":"all the WebGL 1.0 constants","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"time":{"modified":"2021-08-04T03:58:55.000Z","created":"2015-05-24T22:34:38.685Z","1.0.0":"2015-05-24T22:34:38.685Z"},"users":{"vorg":true},"author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"repository":{"type":"git","url":"git://github.com/mattdesl/gl-constants.git"},"versions":{"1.0.0":{"name":"gl-constants","version":"1.0.0","description":"all the WebGL 1.0 constants","main":"./1.0/index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{},"devDependencies":{"tape":"^4.0.0"},"scripts":{"test":"node test.js"},"keywords":["gl","webgl","glsl","stackgl","constant","constants","flag","flags","param","params","fields","field","options"],"repository":{"type":"git","url":"git://github.com/mattdesl/gl-constants.git"},"homepage":"https://github.com/mattdesl/gl-constants","bugs":{"url":"https://github.com/mattdesl/gl-constants/issues"},"gitHead":"d81e1126149fe324e20a2250af2a8bc30f7fe7e1","_id":"gl-constants@1.0.0","_shasum":"597a504e364750ff50253aa35f8dea7af4a5d233","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"dist":{"shasum":"597a504e364750ff50253aa35f8dea7af4a5d233","size":6110,"noattachment":false,"key":"/gl-constants/-/gl-constants-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gl-constants/download/gl-constants-1.0.0.tgz"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"directories":{},"publish_time":1432506878685,"_cnpm_publish_time":1432506878685,"_hasShrinkwrap":false}},"readme":"# gl-constants\n\n[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)\n\nAll the WebGL 1.0 constants as a module. Useful for testing.\n\n```js\nvar constants = require('gl-constants')\n\ntexture.minFilter = constants.LINEAR\ntexture.magFilter = constants.NEAREST\n```\n\nYou can also 'lookup' a constant by number:\n\n```js\nvar lookup = require('gl-constants/lookup')\n\nconsole.log(lookup(1282)) // INVALID_OPERATION\n```\n\nNote that some fields share the same number, like `NONE`, `ZERO` `POINTS` and `NO_ERROR` all use 0.\n\n## Usage\n\n[![NPM](https://nodei.co/npm/gl-constants.png)](https://www.npmjs.com/package/gl-constants)\n\n#### `require('gl-constants')`\n\nAn object where each key corresponds to the WebGL constant integer value.\n\n#### `require('gl-constants/lookup')(number)`\n\nReturns the key name associated with the given WebGL constant integer value.\n\n## License\n\nMIT, see [LICENSE.md](http://github.com/mattdesl/gl-constants/blob/master/LICENSE.md) for details.\n","_attachments":{},"homepage":"https://github.com/mattdesl/gl-constants","bugs":{"url":"https://github.com/mattdesl/gl-constants/issues"},"license":"MIT"}