mgine
v0.2.2
Published
2D canvas rendering library.
Maintainers
Readme

Mgine
Mgine (read as emgine) is a simple library to make working with HTML5 canvas graphics easier.
Installation
npm i mginepnpm i mgineyarn add mginebun i mgineUsage
import Mgine from 'mgine';
const mgine = Mgine.Init('canvas-id', { /* options */ });
// or
const mgine2 = new Mgine('canvas-id', { /* options */ });
mgine.fillRect({ x: 10, y: 10, width: 50, height: 50 }, 'green');