Skip to content

Instantly share code, notes, and snippets.

@mbostock
Forked from mbostock/index.html
Last active February 9, 2016 01:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mbostock/3201606 to your computer and use it in GitHub Desktop.
Save mbostock/3201606 to your computer and use it in GitHub Desktop.
Chrome Circle Precision Bug
<!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