Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ethanent/canvax
Entity-based rendering library
https://github.com/ethanent/canvax
canvas canvas2d collision-detection javascript js rendering
Last synced: 10 days ago
JSON representation
Entity-based rendering library
- Host: GitHub
- URL: https://github.com/ethanent/canvax
- Owner: ethanent
- License: mit
- Created: 2017-07-30T21:04:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-09-27T17:58:07.000Z (about 2 months ago)
- Last Synced: 2024-10-30T08:41:31.306Z (17 days ago)
- Topics: canvas, canvas2d, collision-detection, javascript, js, rendering
- Language: JavaScript
- Homepage:
- Size: 3.37 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
---
> The powerful entity-based canvas rendering library
[GitHub](https://github.com/ethanent/canvax) | [NPM](https://www.npmjs.com/package/canvaxjs)
## 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.
```javascript
var game = new canvax.Renderer(document.querySelector('#myCanvas'))
```## Install canvax
```
npm install canvaxjs
```## Documentation
Documentation is limited at the moment. For now, look at the default properties in entities' model class files. (ex. [model/Rectangle.js](https://github.com/ethanent/canvax/blob/master/model/Rectangle.js))