[whatwg] proposed canvas 2d API additions

2006-04-21 Thread Vladimir Vukicevic
Hi folks, I'd like to suggest extending the HTML canvas 2d context with a few additions. These are variations on some of the methods added to Opera's opera-2dgame context. The methods are intended to give content authors direct pixel access to the canvas, as well as provide some basic

Re: [whatwg] proposed canvas 2d API additions

2006-04-21 Thread Ian Hickson
On Fri, 21 Apr 2006, Vladimir Vukicevic wrote: boolean pointInPathFill(in float x, in float y); This sounds fine to me (though it means you have to spin through creating many paths for hit testing, instead of just hanging on to a particular path and hit testing a list of paths, which

Re: [whatwg] Registering protocol handlers

2006-04-21 Thread Christian Biesinger
Ian Hickson wrote: That's not a normative conformance statement, it's a statement of fact. The normative conformance statement that results in this statement of fact being true is the sentence immediately following it: User agents must compare the given values only to the MIME type/subtype

Re: [whatwg] hello list

2006-04-21 Thread Serban Ghita
Hello again, You may be interested in Google's Web Authoring Statistics[1]. Thanks a lot, i've already read that, very interesting. Actually, browsers don't parse DTDs at all for HTML. I've noticed that, and i saw that for XML/XHTML if you provide a custom DTD the browser will look into

Re: [whatwg] Registering protocol handlers

2006-04-21 Thread Ian Hickson
On Fri, 21 Apr 2006, Christian Biesinger wrote: Per the spec, the methods do not check the syntactic validity of their arguments except for two things: The URI not having a %s, and the scheme or content types being privileged (http:, text/html, etc). That's really of no help at all,

Re: [whatwg] proposed canvas 2d API additions

2006-04-21 Thread Vladimir Vukicevic
On 4/21/06, Ian Hickson [EMAIL PROTECTED] wrote: On Fri, 21 Apr 2006, Vladimir Vukicevic wrote: boolean pointInPathFill(in float x, in float y); This sounds fine to me (though it means you have to spin through creating many paths for hit testing, instead of just hanging on to a

Re: [whatwg] proposed canvas 2d API additions

2006-04-21 Thread Ian Hickson
On Fri, 21 Apr 2006, Vladimir Vukicevic wrote: On 4/21/06, Ian Hickson [EMAIL PROTECTED] wrote: On Fri, 21 Apr 2006, Vladimir Vukicevic wrote: boolean pointInPathFill(in float x, in float y); This sounds fine to me (though it means you have to spin through creating many paths

Re: [whatwg] proposed canvas 2d API additions

2006-04-21 Thread Sjoerd Visscher
I understand what you are proposing. What I don't understand is what colour should be returned when the many device pixels represented by the given coordinate space pixel have different colors. The weighted average of the colors in the square the size of 1 by 1 canvas pixels. -- Sjoerd

Re: [whatwg] proposed canvas 2d API additions

2006-04-21 Thread Ian Hickson
On Sat, 22 Apr 2006, Sjoerd Visscher wrote: I understand what you are proposing. What I don't understand is what colour should be returned when the many device pixels represented by the given coordinate space pixel have different colors. The weighted average of the colors in the