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

Re: [whatwg] Stroking algorithm in Canvas 2d

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 16 Oct 2013 17:43:59 +0000 (UTC)
To: Justin Novosad <junov@google.com>
Message-ID: <alpine.DEB.2.00.1310161742420.11763@ps20323.dreamhostps.com>
Cc: "whatwg@whatwg.org" <whatwg@whatwg.org>
On Wed, 16 Oct 2013, Justin Novosad wrote:
> No, I don't mean an implied zero. I meant that at every iteration over 
> the dash pattern, the pattern is inverted if it has an odd number of 
> elements (blanks become dashes and vice versa). This would render 
> exactly the same as what is currently in the spec, which is consistent 
> with SVG.  The only difference is that there is no doubling of the 
> array.  If the array needs to be doubled in order to work with the 
> underlying graphics API, that should be the UA's business and it should 
> be hidden under the hood.

Ah, ok. I'm fine with us changing to that if browsers are able to. I don't 
think there's much of a problem either way; the advantage of the current 
model is that it leaves no ambiguity in the API about what it means to set 
an odd-length array.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 16 October 2013 17:44:24 UTC

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