Re: [whatwg] Canvas stroke alignment

2010-07-24 Thread Nick
Op 24-7-2010 2:02, David Flanagan schreef: Nick wrote: Nice, less math. I think the outside alignment approach will only work on paths that have a 100% opacity fill. You'r right. The off-screen rectangle approach could work with opacity but it has the same problem with transparent pixels

Re: [whatwg] Canvas stroke alignment

2010-07-23 Thread Nick
Nice, less math. I think the outside alignment approach will only work on paths that have a 100% opacity fill. The off-screen rectangle approach could work with opacity but it has the same problem with transparent pixels between the stroke and the fill as you'd get with a custom path once

Re: [whatwg] Canvas stroke alignment

2010-07-20 Thread David Flanagan
Nick wrote: 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

Re: [whatwg] Canvas stroke alignment

2010-07-19 Thread Mike Wilcox
Wow, that would be so enormously useful. You make a shape, add a shape inside of it that is 100x100, add a stroke, get the width and it's 101. This error cascades, and shifts your items around on redraw. The math workaround is not easy. FWIW, Photoshop uses position for this option (I don't