-
-
Save mbostock/3201606 to your computer and use it in GitHub Desktop.
Chrome Circle Precision Bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<body> | |
<script src="//d3js.org/d3.v3.min.js"></script> | |
<script> | |
var canvas = d3.select("body").append("canvas") | |
.attr("width", 960) | |
.attr("height", 500); | |
var context = canvas.node().getContext("2d"); | |
context.strokeStyle = "#000"; | |
context.beginPath(); | |
context.arc(395.8562790527633, 44.691485522888755, 44.691485522888755, 0, 2 * Math.PI); | |
context.moveTo(842.7711342816508 - 1117.2871380722188, 1117.2871380722188); | |
context.arc(842.7711342816508, 1117.2871380722188, 1117.2871380722188, -Math.PI, -Math.PI / 2); | |
context.stroke(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment