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

[whatwg] Canvas 2d: proposal to add path(DOMString)

From: Charles Pritchard <chuck@jumis.com>
Date: Fri, 29 Jul 2011 13:44:07 -0700
Message-ID: <4E331B97.4010907@jumis.com>
Having spoken to several developers, I think that we're clear to add a 
new method to the canvas 2d api;
though there is some question about how it should be added.

The method would take a DOMString using SVG path semantics.

I'm not certain which route is better:
ctx.fillPath('M ..z'), ctx.strokePath('M...z');

This usually takes ~80 lines of JavaScript to support,
we're eager to see it added to native implementations.

All browser vendors have SVG support now, and could easily re-use
code from their SVG implementations to implement this canvas 2d 

Received on Friday, 29 July 2011 13:44:07 UTC

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