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

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

From: Chris Lilley <chris@w3.org>
Date: Wed, 21 Jan 2015 21:27:03 +0100
Message-ID: <919551239.20150121212703@w3.org>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: Jonathan Rimmer <jon.rimmer@gmail.com>, www-style list <www-style@w3.org>
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

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