[whatwg] Blurry lines in 2D Canvas (and SVG)

Glenn Maynard glenn at zewt.org
Fri Aug 9 14:24:25 PDT 2013


On Fri, Aug 9, 2013 at 4:17 PM, Stephen White <senorblanco at chromium.org>wrote:

> If the stroke was instead drawn centered over half pixels, the stroked
>
rects would be centered along (5.5, 5.5) -> (14.5, 5.5) -> (14.5, 14.5) ->
> (14.5, 5.5) -> (5.5, 5.5). This would touch pixels 5->15 in each dimension.
> If drawn with transparency, the resulting left and top edges would look
> different than the bottom and right edges.  E.g.,
> http://jsfiddle.net/9xbkX/


My proposal addresses this, by adding an "outer" stroke mode.
http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2013-July/040252.html

-- 
Glenn Maynard



More information about the whatwg mailing list