Skip to content

Instantly share code, notes, and snippets.

Last active February 9, 2016 00:45
What would you like to do?
Poor Anti-Aliasing in SVG, #2

400 coincident opaque svg:line elements, each .5-pixel wide. The coincident lines on the left should appear identical to the single line on the right.

<!DOCTYPE html>
<meta charset="utf-8">
line {
stroke: #000;
stroke-width: .5px;
<script src="//"></script>
var svg ="body").append("svg")
.attr("width", 960)
.attr("height", 500);
.attr("x2", 480)
.attr("y2", 500);
.attr("transform", "translate(480)")
.attr("x2", 480)
.attr("y2", 500);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment