Re: [css3-transitions] colour space used for colour interpolations

On Thu, May 17, 2012 at 5:49 PM, L. David Baron <dbaron@dbaron.org> wrote:
> On Friday 2012-05-18 10:43 +1000, Cameron McCormack wrote:
>> (Brian mentioned to me that people also want to be able to
>> interpolate in other colour spaces, like HSL or L*a*b too -- we
>> could extend color-interpolation with options for that.)
>
> Are there obvious rules for interpolating in these spaces?  It's
> certainly not clear to me how to interpolate between hsl(0, 100%,
> 50%) and hsl(180, 100%, 50).

We discussed that in this group a year or so ago, when discussing
gradient interpolation (and theorizing about future behavior).

HSL needs a specifier about how it deals with colors separated by a
half-turn: positive, negative, cross-zero, or avoid-zero.  We could
either simply choose one, or make this choosable with several
keywords.

Any colorspace with a circular value obviously has the same problem.

~TJ

Received on Friday, 18 May 2012 00:57:52 UTC