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

Re: [whatwg] gradient edge case

From: David Dailey <ddailey@zoominternet.net>
Date: Sat, 1 Sep 2012 22:07:13 -0400
To: "'Rik Cabanier'" <cabanier@gmail.com>, "'whatwg'" <whatwg@lists.whatwg.org>, <public-canvas-api@w3.org>
Message-ID: <004a01cd88af$ab16b9a0$01442ce0$@net>
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.


-----Original Message-----
From: whatwg-bounces@lists.whatwg.org
[mailto:whatwg-bounces@lists.whatwg.org] On Behalf Of Rik Cabanier
Sent: Saturday, September 01, 2012 9:59 PM
To: whatwg; public-canvas-api@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 that
has the first colorstop's on the left/inside and the last colorstop's color
on the right/outside.

Received on Sunday, 2 September 2012 02:07:45 UTC

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