W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2013

Re: [whatwg] Stroking algorithm in Canvas 2d

From: Rik Cabanier <cabanier@gmail.com>
Date: Thu, 10 Oct 2013 12:43:49 -0700
Message-ID: <CAGN7qDApRQsv2d6mHzmAs3dBvaVqgbUmVB07bkx2nKNCyT0dNQ@mail.gmail.com>
To: Justin Novosad <junov@google.com>
Cc: "whatwg@whatwg.org" <whatwg@whatwg.org>, Ian Hickson <ian@hixie.ch>, syhann@adobe.com
On Thu, Oct 10, 2013 at 12:25 PM, Justin Novosad <junov@google.com> wrote:

>
>
>
> On Thu, Oct 10, 2013 at 1:37 PM, Rik Cabanier <cabanier@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
Received on Thursday, 10 October 2013 19:44:13 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:11 UTC