This page is work-in-progress. You can reach me on twitter or mail to

Loading images

A simple image loader using Promises.

    tank: "images/tank.png",
    tree: "images/tree.png"
}).then(function() {

    /* called when images are ready */

    var layer = cq(320, 240);

    layer.drawImage(cq.images.tank, 0, 0);


Have any questions? Don't hesitate to ask:

Post issues on github, support my work on gratipay author rezoner