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

Loading images

A simple image loader using Promises.

cq.loadImages({
    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