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

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
operation.

~TJ

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