Skip to content

mattdesl/kami-white-texture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

creates a white 1x1 texture, useful for tinted rectangles and lines

Resources

License

Stars

Watchers

Forks

Packages

No packages published