Re: [whatwg] gradient edge case

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