W3C home > Mailing lists > Public > www-style@w3.org > January 2015

Re: [css4-images] Non-linear interpolation between gradient color stops

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 21 Jan 2015 12:33:45 -0800
Message-ID: <CAAWBYDBf=Kp4e=b8-HoBU_2ZgHfR_hVLsfRHbTPRUF_1Sk7CSQ@mail.gmail.com>
To: Jonathan Rimmer <jon.rimmer@gmail.com>
Cc: Rik Cabanier <cabanier@gmail.com>, www-style list <www-style@w3.org>
On Wed, Jan 21, 2015 at 11:22 AM, Jonathan Rimmer <jon.rimmer@gmail.com> wrote:
> Yeah, you're right. Sorry. I didn't follow the algorithm correctly. But even
> here, the non-linear part relates to the rate of progression between the
> color stops, rather than the route through the color space, right? What you
> describe as a "linear blend" in step 4 is also an interpolation, and it's
> that interpolation that I'm proposing could be controllable.

Yes.  The path itself is still piecewise linear; this just changes the
progression speed to no longer be.

> I can see how this can be used to smooth out the end of a transition to a
> particular stop, but at the expense of a sharper transition at the
> beginning. This seems to bear out with my experiments in your CodePen, and
> in Illustrator. It can't seem to provide the same kind of uniformly smooth
> transition as the "smoothness" function in Photoshop, or produce the kind of
> gradients possible with Gentle Gradient?[1]

Right, there are a number of interesting things you can do with more
control.  The spec's midpoint thing is a relatively simple smoothing

Received on Wednesday, 21 January 2015 20:34:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:50 UTC