ctx.rotate(45 * Math.PI / 180); ctx.fillRect(70,0,100,30); ctx.setTransform(1, 0, 0, 1, 0, 0);