Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

kami-white-texture

mattdesl5MIT1.0.2

creates a 1x1 white WebGL texture

readme

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.