Watch a demo of different values of the setTransform() method.
Or click a specific value to see the result:
const c = document.getElementById('myCanvas'); const ctx = c.getContext('2d'); ctx.setTransform(1,0,0,0.5,0,0); ctx.fillStyle='lightblue'; ctx.fillRect(10,10,250,100); ctx.fillStyle='red'; ctx.font='30px Arial'; ctx.fillText('Transform', 60,80);