W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2012

Re: [whatwg] gradient edge case

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 11 Dec 2012 00:07:27 +0000 (UTC)
To: whatwg <whatwg@lists.whatwg.org>
Message-ID: <Pine.LNX.4.64.1212110000190.9975@ps20323.dreamhostps.com>
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 what browsers (mostly) do.


On Sat, 1 Sep 2012, David Dailey wrote:
>
> While on the topic, it seems like reflected linear gradients would be 
> quite handy -- insert an "edge" into the stop-sequence and then reflect 
> or repeat from there.

Can't you just do that by listing the colours forwards and backwards?


On Sat, 1 Sep 2012, Rik Cabanier wrote:
>
> Since Canvas has support for pattern, you could fairly easy emulate this
> behavior.
> I think it would be handy if you could add the 'reflect' idiom to patterns.

Can't you just make the larger pattern and use that?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 11 December 2012 00:08:10 UTC

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