var ctx = document.getElementById('myCanvas').getContext('2d'); ctx.save(); ctx.translate(15, 0); // ... do stuff with the transformed origin ctx.restore(); // ... do stuff with the canvas restored to its original state (if necessary)