rotation

controls the facing of the image

Examples

const img = $.loadImage(
    $.w/2, 
    $.h/2,
    "/images/sir_cheesealot.png"
);

function update() {
    img.draw();
    img.rotation += 1;
}