W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2010

[whatwg] Canvas stroke alignment

From: Nick <nickstakenburg@home.nl>
Date: Mon, 19 Jul 2010 17:08:51 +0200
Message-ID: <4C446A83.305@home.nl>
Canvas would benefit from a way to set stroke alignment. With the only 
available alignment being center, which is not very useful, custom paths 
have to be drawn to mimic inside and outside stroke alignment. That 
workaround may give unwanted transparency on pixels between a path and 
its stroke path once a path goes diagonal or curves.

Having Canvas take care of stroke alignment (center, inside and outside) 
by adding something like strokeAlign can fix these transparency problems 
and makes adding strokes a lot easier and more useful.

Nick Stakenburg
Received on Monday, 19 July 2010 08:08:51 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:25 UTC