direction

controls the direction of the image

Examples

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

function update() {
    img.draw();
}