Here is an example of the supposed usage:
new Rue({
el: '#canvas',
// setup: function () { ... },
render: function (ctx) {
ctx.fillStyle = 'red';
ctx.fillRect(100, 100, 50, 50);
// You can use this.width and this.height getters to get the dimensions
},
// update: function () { ... },
});
- Port to a github repo
- Add some event hooks