{"_id":"kami-fbo","_rev":"27-f7369c740cb4e624c8e0e907dd08ba1d","name":"kami-fbo","description":"2D framebuffer (render-to-texture) utils for kami","dist-tags":{"latest":"1.1.6"},"versions":{"1.0.0":{"name":"kami-fbo","version":"1.0.0","description":"2D framebuffer (render-to-texture) utils for kami","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"dependencies":{"kami-util":"~1.1.0","klasse":"~1.0.8","kami-texture":"~1.0.1"},"devDependencies":{"tape":"~2.13.2","webgl-context":"~1.2.1"},"scripts":{"test":"browserify test.js | testling -x open"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"repository":{"type":"git","url":"git://github.com/mattdesl/kami-fbo.git"},"homepage":"https://github.com/mattdesl/kami-fbo","bugs":{"url":"https://github.com/mattdesl/kami-fbo/issues"},"keywords":["fbo","framebuffer","frame","buffer","object","webgl","glsl","opengl","render","texture","render-to-texture","rendertexture"],"_id":"kami-fbo@1.0.0","dist":{"shasum":"eb25564b49167584a798382930d2c93b6814b89c","tarball":"https://registry.npmjs.org/kami-fbo/-/kami-fbo-1.0.0.tgz","integrity":"sha512-qARvrwDdtif2SgZ/kXB9902VfsO9XM5sfiOj0a2IMwqyb9/3JmK1kC45ueh6QJafEJGNJ0wT6WnqlbLTqeNCtA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBvJeFKTHuM9lLE+4h9qG0FjPXhIKKIqGizsoD2pXVowAiA1thMj7CrZNlIYn2ATJ+pinVa4o/wcleYULNCTVeUHuQ=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}]},"1.1.0":{"name":"kami-fbo","version":"1.1.0","description":"2D framebuffer (render-to-texture) utils for kami","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"dependencies":{"kami-util":"~1.1.0","klasse":"~1.0.8","kami-texture":"~1.0.1"},"devDependencies":{"tape":"~2.13.2","webgl-context":"~1.2.1","kami-texture":"~1.0.4","kami-white-texture":"~1.0.0"},"scripts":{"test":"browserify test.js | testling -x open"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"repository":{"type":"git","url":"git://github.com/mattdesl/kami-fbo.git"},"homepage":"https://github.com/mattdesl/kami-fbo","bugs":{"url":"https://github.com/mattdesl/kami-fbo/issues"},"keywords":["fbo","framebuffer","frame","buffer","object","webgl","glsl","opengl","render","texture","render-to-texture","rendertexture"],"_id":"kami-fbo@1.1.0","dist":{"shasum":"051ef7ecc6b9b42ffdf3a0744d2cc7805cf782ba","tarball":"https://registry.npmjs.org/kami-fbo/-/kami-fbo-1.1.0.tgz","integrity":"sha512-bTH7p4Ix+ESs/+Zo/lagQsfMB/8y6F5xkKAnDG3wwbT69EGLKUq2GgJ98/57JLJ3tu/rcYq8LD+96mUvByRRDQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSDLHz5L9xfag0ARSSXQXKGP5GJln6BbXakDvjg3HbZwIhAKXTFMPyyRx/obMXd0lz/VV2cXKQ07+6fdeaA9I1f6eu"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}]},"1.1.1":{"name":"kami-fbo","version":"1.1.1","description":"2D framebuffer (render-to-texture) utils for kami","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"dependencies":{"kami-util":"~1.1.0","klasse":"~1.0.8","kami-texture":"~1.0.1"},"devDependencies":{"tape":"~2.13.2","webgl-context":"~1.2.1","kami-white-texture":"~1.0.0"},"scripts":{"test":"browserify test.js | testling -x open"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"repository":{"type":"git","url":"git://github.com/mattdesl/kami-fbo.git"},"homepage":"https://github.com/mattdesl/kami-fbo","bugs":{"url":"https://github.com/mattdesl/kami-fbo/issues"},"keywords":["fbo","framebuffer","frame","buffer","object","webgl","glsl","opengl","render","texture","render-to-texture","rendertexture"],"_id":"kami-fbo@1.1.1","dist":{"shasum":"0a2d842bce935cdca00315cb4a177c29ae2c84bb","tarball":"https://registry.npmjs.org/kami-fbo/-/kami-fbo-1.1.1.tgz","integrity":"sha512-zWswGU+6ZTP8IKRMvIjbxWH7D9xptcWLkCHhY0de47mgfcilrAEXUupLaYrecAmS+3Z0iF2K/UsuGfMdLnasng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCZqPuAUn6vScy4VmQ4h0mUboV51NGG0/CidIJvxYemQIgCxCleNm4tuVnmvSmeBpVjgc+BPpXUGRWsRyFRmPNtj8="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}]},"1.1.2":{"name":"kami-fbo","version":"1.1.2","description":"2D framebuffer (render-to-texture) utils for kami","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"dependencies":{"kami-util":"~1.1.0","klasse":"~1.0.8","kami-texture":"~1.0.4"},"devDependencies":{"tape":"~2.13.2","webgl-context":"~1.2.1","kami-white-texture":"~1.0.0"},"scripts":{"test":"browserify test.js | testling -x open"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"repository":{"type":"git","url":"git://github.com/mattdesl/kami-fbo.git"},"homepage":"https://github.com/mattdesl/kami-fbo","bugs":{"url":"https://github.com/mattdesl/kami-fbo/issues"},"keywords":["fbo","framebuffer","frame","buffer","object","webgl","glsl","opengl","render","texture","render-to-texture","rendertexture"],"_id":"kami-fbo@1.1.2","dist":{"shasum":"8e60153daaa099c6d6dad20c0f46580464f27200","tarball":"https://registry.npmjs.org/kami-fbo/-/kami-fbo-1.1.2.tgz","integrity":"sha512-2BLJ/acEh/ZmGR+5GL3LnwsyFCWVlRAQyTSZvnKaadg5kBVOstqIiNSijbICkMvwj5XxeI58rp+OCpg5Gr3jyg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5tbctXKSxQmUJrgmoZKOeZ+fHN7hk8KlDcUz6h4QyFQIgOkPng2GFB3b6bOm35t3gBH9dnUeulPyy1hf0QlgyvEA="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}]},"1.1.3":{"name":"kami-fbo","version":"1.1.3","description":"2D framebuffer (render-to-texture) utils for kami","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"dependencies":{"kami-util":"~1.1.0","klasse":"~1.0.8","kami-texture":"~1.0.4"},"devDependencies":{"tape":"~2.13.2","webgl-context":"~1.2.1","kami-white-texture":"~1.0.0"},"scripts":{"test":"browserify test.js | testling -x open"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"repository":{"type":"git","url":"git://github.com/mattdesl/kami-fbo.git"},"homepage":"https://github.com/mattdesl/kami-fbo","bugs":{"url":"https://github.com/mattdesl/kami-fbo/issues"},"keywords":["fbo","framebuffer","frame","buffer","object","webgl","glsl","opengl","render","texture","render-to-texture","rendertexture"],"gitHead":"bb2782b5cf28de05ee2404f46c8a0487be94e851","_id":"kami-fbo@1.1.3","_shasum":"fbacba57258c0e7ae9f40c20ed1a944d3cb87cad","_from":".","_npmVersion":"1.4.15","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"fbacba57258c0e7ae9f40c20ed1a944d3cb87cad","tarball":"https://registry.npmjs.org/kami-fbo/-/kami-fbo-1.1.3.tgz","integrity":"sha512-nra9GZwYzyiPy5wC0Zv0e8oDq/OjaebmAscQZbnDex9HjdKuW5aeHFuaDIGzN3WJlg8kOGG5No4W16ljMvZqYw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDoTAOxNJ+AyTboNTaQcCxk5omB/m/nbh5ePNjWpIkn4AiAwY/XkotQf35dOPyPo0KWgtiUoAADVqLDmlFHL5VvnrA=="}]}},"1.1.4":{"name":"kami-fbo","version":"1.1.4","description":"2D framebuffer (render-to-texture) utils for kami","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"dependencies":{"kami-util":"~1.1.0","klasse":"~1.0.8","kami-texture":"~1.0.4"},"devDependencies":{"tape":"~2.13.2","webgl-context":"~1.2.1","kami-white-texture":"~1.0.0"},"scripts":{"test":"browserify test.js | testling -x open"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"repository":{"type":"git","url":"git://github.com/mattdesl/kami-fbo.git"},"homepage":"https://github.com/mattdesl/kami-fbo","bugs":{"url":"https://github.com/mattdesl/kami-fbo/issues"},"keywords":["fbo","framebuffer","frame","buffer","object","webgl","glsl","opengl","render","texture","render-to-texture","rendertexture"],"gitHead":"33bd64ad2b6b0b2cd83e991318b04d4d70c5df24","_id":"kami-fbo@1.1.4","_shasum":"db9c71c5b18ea1e12c1ff30c5735977b2e942e06","_from":".","_npmVersion":"1.4.15","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"db9c71c5b18ea1e12c1ff30c5735977b2e942e06","tarball":"https://registry.npmjs.org/kami-fbo/-/kami-fbo-1.1.4.tgz","integrity":"sha512-W60jyF+OPMye46oljrKvGrLU8CPQhBMby9elTox+YGknVfPUOi4UvXqwh35jt8rb2T3C8DD9yCza8n0thNjCqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGOZ0fPiZTM22fcP8UqnqUmwgROo8JM8Cj4Qr1S6AoOQIgN6BwNKy4EpYa5VbkYlcrL+NdyO3Owjc++4YRiUXaL1M="}]}},"1.1.5":{"name":"kami-fbo","version":"1.1.5","description":"2D framebuffer (render-to-texture) utils for kami","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"dependencies":{"kami-util":"~1.1.0","klasse":"~1.0.8","kami-texture":"~1.0.4"},"devDependencies":{"tape":"~2.13.2","webgl-context":"~1.2.1","kami-white-texture":"~1.0.0"},"scripts":{"test":"browserify test.js | testling -x open"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"repository":{"type":"git","url":"git://github.com/mattdesl/kami-fbo.git"},"homepage":"https://github.com/mattdesl/kami-fbo","bugs":{"url":"https://github.com/mattdesl/kami-fbo/issues"},"keywords":["fbo","framebuffer","frame","buffer","object","webgl","glsl","opengl","render","texture","render-to-texture","rendertexture"],"gitHead":"a698c1d11442c0d5b64c049cc590ae6e33de4efc","_id":"kami-fbo@1.1.5","_shasum":"daa9c3fdec1f3b8cec198fe9583b15f6b63704ff","_from":".","_npmVersion":"1.4.15","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"daa9c3fdec1f3b8cec198fe9583b15f6b63704ff","tarball":"https://registry.npmjs.org/kami-fbo/-/kami-fbo-1.1.5.tgz","integrity":"sha512-0T/MSxaR3Noa7qFKe3o9QBtYz54tX/XZv3+om8eLzZS2sRsIuyucCSt9pgDbDpuSMafnvDPzSI1tJiTP2XD7vw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDa8l9g1UQJovTkDXHSaUgvQgAm+4w2pFgqzBbFrZSZTAIgTUjr9n7Pj+78Baia66lBrydaLqMeNzEvzRBqaetmG04="}]}},"1.1.6":{"name":"kami-fbo","version":"1.1.6","description":"2D framebuffer (render-to-texture) utils for kami","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"dependencies":{"kami-texture":"~1.0.4","kami-util":"^1.1.2","klasse":"~1.0.8"},"devDependencies":{"tape":"~2.13.2","webgl-context":"~1.2.1","kami-white-texture":"~1.0.0"},"scripts":{"test":"browserify test.js | testling -x open"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"repository":{"type":"git","url":"git://github.com/mattdesl/kami-fbo.git"},"homepage":"https://github.com/mattdesl/kami-fbo","bugs":{"url":"https://github.com/mattdesl/kami-fbo/issues"},"keywords":["fbo","framebuffer","frame","buffer","object","webgl","glsl","opengl","render","texture","render-to-texture","rendertexture"],"gitHead":"5d77b292914182bec0a33cb884be050083553aeb","_id":"kami-fbo@1.1.6","_shasum":"9539036b6b78ff724e8dc86be1a8fb1a5d9e46f7","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"9539036b6b78ff724e8dc86be1a8fb1a5d9e46f7","tarball":"https://registry.npmjs.org/kami-fbo/-/kami-fbo-1.1.6.tgz","integrity":"sha512-IrqCbKTHCPv8Z+pNLxrNDyvyG+bYx4wYqAVkoqYIH274gGZOvy+TUwhtC20qRzSI6lKRaHaPRuFWNvwV8YO9gw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6+HuGM7WAJgFWRLUfX0F9/kV4ZgOWmtYsIDnbuXcPvAIhAMP2OW9pQ8TRUzb0YRfw2NBiiTSscss2TvKwozih0aJK"}]}}},"readme":"# kami-fbo\n\n[![unstable](http://badges.github.io/stability-badges/dist/unstable.svg)](http://github.com/badges/stability-badges)\n\nA 2D render-texture (frame buffer object) for use with [kami](http://github.com/mattdesl/kami).\n\n## Usage\n\n[![NPM](https://nodei.co/npm/kami-fbo.png)](https://nodei.co/npm/kami-fbo/)\n\n```js\nvar fbo = require('kami-fbo')(gl, {\n\twidth: 256,\n\theight: 256,\n\tformat: gl.RGB\n});\n\n//binds the frame buffer for your render-to-texture ops\n//this also sets the viewport to the FBO size\nfbo.begin();\n\n// ... draw to it ...\n\n//unbinds the framebuffer (binds null fbo)\n//this resets the viewport to the context size\nfbo.end();\n```\nOptions:\n- `width` the width of the texture, must be >= 1\n- `height` the height of the texture, must be >= 1\n- `format` the format of the texture, default gl.RGBA\n- `texture` optional; a [kami-texture](http://github.com/mattdesl/kami-texture) to use instead of creating a new one\n\n### Gotchas\n\nCalling `end()` resets the viewport to the context size, by querying the width and height of the passed `gl` context. If you've passed a simple WebGLRenderingContext, it will use the canvas width and height. This may cause problems if your canvas width and height is scaled for retina displays.\n\nIf you passed a `kami-context`, the `width` and `height` of the context do not represent the retina-scaled sizes, so it should be all good.\n\n## License\n\nMIT, see [LICENSE.md](http://github.com/mattdesl/kami-fbo/blob/master/LICENSE.md) for details.\n","maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"time":{"modified":"2022-06-19T07:48:04.112Z","created":"2014-06-12T02:00:06.847Z","1.0.0":"2014-06-12T02:00:08.372Z","1.1.0":"2014-06-12T16:23:46.345Z","1.1.1":"2014-06-12T16:24:39.470Z","1.1.2":"2014-06-12T16:27:01.597Z","1.1.3":"2014-06-13T02:27:10.317Z","1.1.4":"2014-06-13T02:30:02.114Z","1.1.5":"2014-06-13T03:08:10.430Z","1.1.6":"2014-07-01T18:36:28.428Z"},"readmeFilename":"README.md","homepage":"https://github.com/mattdesl/kami-fbo","keywords":["fbo","framebuffer","frame","buffer","object","webgl","glsl","opengl","render","texture","render-to-texture","rendertexture"],"repository":{"type":"git","url":"git://github.com/mattdesl/kami-fbo.git"},"author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"bugs":{"url":"https://github.com/mattdesl/kami-fbo/issues"},"license":"MIT"}