[whatwg] Stroking algorithm in Canvas 2d

Rik Cabanier cabanier at gmail.com
Thu Oct 10 12:43:49 PDT 2013


On Thu, Oct 10, 2013 at 12:25 PM, Justin Novosad <junov at google.com> wrote:

>
>
>
> On Thu, Oct 10, 2013 at 1:37 PM, Rik Cabanier <cabanier at gmail.com> wrote:
>
>>
>>  The main issue I see with that algorithm is that it does not solve the
>>> case where you would want a join and a dashing break at the same point. I
>>> think that is an important case to support, in particular for drawing
>>> rectangles.
>>>
>>
>> Can you send a screenshot/jsfiddle about what you're trying to accomplish?
>>
>
> http://jsfiddle.net/ZxR6P/1/
>

Yes, that looks like "Align dashes to corners and path ends" [1]
Output from Illustrator: http://jsfiddle.net/k6H6e/2/
<http://jsfiddle.net/k6H6e/2/>

1:
http://help.adobe.com/en_US/illustrator/cs/using/WSA1E31D7D-13E6-41ac-AA8C-4AD129B9FC1Ca.html



More information about the whatwg mailing list