Watch a demo of different values of the rotate() method.
Or click a specific value to see the result:
const c = document.getElementById('myCanvas'); const ctx = c.getContext('2d'); ctx.rotate(3*Math.PI/180); ctx.fillRect(75,10,100,50);
Play more with the code in our Tryit yourself editor: Try it Yourself ❯