Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 73992

canvas line is blurry in html/javascript

$
0
0

everything says "even-width lines don't have this problem" but they DO
here's my code:

var c = document.getElementById("clamvas");
var ctx = c.getContext("2d");
ctx.lineWidth = 2;
ctx.moveTo(0, 0);
ctx.lineTo(1728, 877);
ctx.stroke();
canvas
{
	width:90%;
	height:90%;
	padding: 0;
    margin: auto;
    display: block;
	border:5px solid #000000;
	position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
<canvas id="clamvas"></canvas>

Viewing all articles
Browse latest Browse all 73992

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>