Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

canvaxjs

0.3.0 • Public • Published

canvax logo


The new powerful, lightweight, entity-based canvas rendering library

Full documentation | GitHub | NPM

Using canvax

The canvax library is super simple to use. To create a new renderer, go ahead and attach a new renderer to a canvas element.

var game = new canvax.Renderer(document.querySelector("canvas"));

Let's render a rectangle on the canvas. Super simple.

game.add(new canvax.Rectangle(0, 0, 100, 100));
game.render();

Install canvax

npm install canvaxjs

And include the following in your <head> tag before scripts.

<script src="node_modules/canvaxjs/canvax.min.js"></script>

Full documentation

You can find the full documentation over here. Have a look at the full docs for detailed library usage information.

install

npm i canvaxjs

Downloadsweekly downloads

25

version

0.3.0

license

SEE LICENSE IN LICENSE.md

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability