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

Hello Tab,

Wednesday, January 21, 2015, 7:22:24 PM, you wrote:

> On Wed, Jan 21, 2015 at 10:09 AM, Jonathan Rimmer <jon.rimmer@gmail.com> wrote:
>> While moving the mid-point does mean that the interpolation between the two
>> stops is not strictly linear, the spec says that the between the colors of
>> the stops and the midpoint is still linear. Therefore, the path taken
>> through the color space will still be linear, with the associated problems I
>> described.

> Nope.  Seriously, read the algorithm.  It's not linear.  It's not
> piecewise linear.  It's an exponential interpolation.  The spec
> doesn't say anything about it being linear from the stop to the hint
> either.

Mid-point stop is a way of grabbing a line and bending it into a
curve. The result is a gradient that is piecewise-exponential; there
are curves between the stops, but the curves are not continuous.


-- 
Best regards,
 Chris Lilley, Technical Director, W3C Interaction Domain

Received on Wednesday, 21 January 2015 20:27:11 UTC