Create WebGL context in Plask or in a web browser (via browserify.
To create new WebGL context via Plask window (in Plask) or HTMLCanvas (in a browser):
var createGl = require('pex-gl')
var gl = createGL()
or
// full window canvas
var gl = createGl()
// creates gl context from existing canvas and keeps it's size
var gl = createGL({ canvas: canvas })
// creates new canvas with given width and height
var gl = createGl({ width: Number, height: Number })
Creates gl context from canvas/window with given width and height in pixels.
MIT, see LICENSE.md for details.