Re: [whatwg] gradient edge case

2012-12-10 Thread Ian Hickson
On Sat, 1 Sep 2012, Rik Cabanier wrote: Currently the canvas spec specifies the following: If x0 = x1 and y0 = y1, then the linear gradient must paint nothing. and If x0 = x1 and y0 = y1 and r0 = r1, then the radial gradient must paint nothing Why is this? At this point: it's

Re: [whatwg] gradient edge case

2012-12-10 Thread Rik Cabanier
On Mon, Dec 10, 2012 at 4:07 PM, Ian Hickson i...@hixie.ch wrote: On Sat, 1 Sep 2012, Rik Cabanier wrote: Currently the canvas spec specifies the following: If x0 = x1 and y0 = y1, then the linear gradient must paint nothing. and If x0 = x1 and y0 = y1 and r0 = r1, then the

Re: [whatwg] gradient edge case

2012-12-10 Thread Ian Hickson
On Mon, 10 Dec 2012, Rik Cabanier wrote: yes, however it will be slower since the pattern has to be rendered two or four times. If you can reflect in x and y, you can calculate the pattern cell once and then have your hardware do the tiling. If it's something that happens a lot, then

[whatwg] gradient edge case

2012-09-01 Thread Rik Cabanier
All, Currently the canvas spec specifies the following: If x0 = x1 and y0 = y1, then the linear gradient must paint nothing. and If x0 = x1 and y0 = y1 and r0 = r1, then the radial gradient must paint nothing Why is this? It seems that the gradient should just be a line or circle that has the

Re: [whatwg] gradient edge case

2012-09-01 Thread David Dailey
Of Rik Cabanier Sent: Saturday, September 01, 2012 9:59 PM To: whatwg; public-canvas-...@w3.org Subject: [whatwg] gradient edge case All, Currently the canvas spec specifies the following: If x0 = x1 and y0 = y1, then the linear gradient must paint nothing. and If x0 = x1 and y0 = y1 and r0 = r1

Re: [whatwg] gradient edge case

2012-09-01 Thread Rik Cabanier
:59 PM To: whatwg; public-canvas-...@w3.org Subject: [whatwg] gradient edge case All, Currently the canvas spec specifies the following: If x0 = x1 and y0 = y1, then the linear gradient must paint nothing. and If x0 = x1 and y0 = y1 and r0 = r1, then the radial gradient must paint nothing

Re: [whatwg] gradient edge case

2012-09-01 Thread Rik Cabanier
-canvas-...@w3.org Subject: [whatwg] gradient edge case All, Currently the canvas spec specifies the following: If x0 = x1 and y0 = y1, then the linear gradient must paint nothing. and If x0 = x1 and y0 = y1 and r0 = r1, then the radial gradient must paint nothing Why is this? It seems