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