W3C home > Mailing lists > Public > www-style@w3.org > May 2012

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 17 May 2012 17:57:03 -0700
Message-ID: <CAAWBYDBjgJ15Vrw1PHZvEm5yd2YXD1DxWZXsutqmoSP=EujZqg@mail.gmail.com>
To: "L. David Baron" <dbaron@dbaron.org>
Cc: Cameron McCormack <cam@mcc.id.au>, "www-style@w3.org" <www-style@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:54 GMT