0
HTML5キャンバスのコンテキストを変換して楕円を描くと、トランスフォームが大きくなるにつれて楕円の輪郭が完全に歪んでしまいます。以下は、サンプルコードと、FirefoxとChromeの両方で見られる結果です。HTML5キャンバス楕円のアウトラインが変形して変形する
<body>
<canvas id="myCanvas" width=900 height=900></canvas>
<script>
var canvas = document.getElementById("myCanvas");
var ctx = canvas.getContext("2d");
ctx.fillStyle = "rgba(0, 51, 255, 0.5)";
ctx.lineWidth = 2;
ctx.beginPath();
ctx.transform(1, 0, 0, 1, -16776544, -16776916);
ctx.ellipse(16776994, 16777316, 400, 400, 0, 0, 2 * Math.PI);
ctx.stroke();
ctx.fill();
</script>
</body>
歪みを修正する方法はありますか はそれがどこかにキャンバスの変換には限界があることが実証されていますか?