A minimalistic HTML5 Canvas Context wrapper allowing to chain canvas drawing instructions.
Install & Usage
npm install gtx
var Gtx = ; // create a new graphic context from a canvas elementvar g1 = ; // optional (convenient method to have the canvas fit the parent)g1; // draw a rectangle with standard canvas API (just that now you can chain them)g1; g1;