kami-white-texture

1.0.2 • Public • Published

kami-white-texture

stable

Creates a 1x1 white WebGL texture. Often used with kami-batch to render filled rectangles and lines efficiently alongside game sprites.

Usage

NPM

var gl = require('webgl-context')();
var tex = require('kami-white-texture')(gl);
 
//bind it...
tex.bind();
 
//use it...

License

MIT, see LICENSE.md for details.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i kami-white-texture

Weekly Downloads

3

Version

1.0.2

License

MIT

Last publish

Collaborators

  • mattdesl