[whatwg] gradient edge case
cabanier at gmail.com
Sat Sep 1 19:25:03 PDT 2012
That trick would only work for axial repeating gradients.
For radial gradients, you can work around it by calculating the extra color
stops. (This is how we emulate this idiom in PDF)
On Sat, Sep 1, 2012 at 7:17 PM, Rik Cabanier <cabanier at gmail.com> wrote:
> Since Canvas has support for pattern, you could fairly easy emulate this
> I think it would be handy if you could add the 'reflect' idiom to patterns.
> On Sat, Sep 1, 2012 at 7:07 PM, David Dailey <ddailey at zoominternet.net>wrote:
>> While on the topic, it seems like reflected linear gradients would be
>> handy -- insert an "edge" into the stop-sequence and then reflect or
>> from there.
>> -----Original Message-----
>> From: whatwg-bounces at lists.whatwg.org
>> [mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Rik Cabanier
>> Sent: Saturday, September 01, 2012 9:59 PM
>> To: whatwg; public-canvas-api at w3.org
>> Subject: [whatwg] gradient edge case
>> Currently the canvas spec specifies the following:
>> If x0 = x1 and y0 = y1, then the linear gradient must paint nothing.
>> If x0 = x1 and y0 = y1 and r0 = r1, then the radial gradient must paint
>> Why is this? It seems that the gradient should just be a line or circle
>> has the first colorstop's on the left/inside and the last colorstop's
>> on the right/outside.
More information about the whatwg