Re: [svgwg] 'color-interpolation' isn't used for alpha compositing (#366)

@AmeliaBR 

> To the extent that anyone implements `linearRGB` color interpolation, I think it is done using the sRGB gamut, but with addition/interpolation simplified. Does anyone have an objection to formally defining it that way?

I'm not sure what you mean by "addition/interpolation simplified". The implementations that implemented the `linearRGB` value for `color-interpolation`:

- Batik
- Inkscape
- Firefox (in part, as noted above)
- Corel SVG Viewer
- Adobe SVG viewer

all implemented it per spec (sRGB primaries, D65 whitepoint, but in linear-light space (undoing the gamma companding step, using the equations defined in the sRGB standard and duplicated in the SVG and CSS specifications for ease of referencing).

I have had several requests to move the definition of the linearRGB space from SVG to CSS Color 4, and it is on my to-do list. The actual definition in the SVG spec is clear and mathematically correct, however.

> As far as `color-interpolation` goes:
I think the property would be a lot more popular if it gave us other options, to interpolate colors (for gradients and animations, in particular) using color spaces that use non-RGB decomposition. Wouldn't it be nice to interpolate between two bright, saturated colors without going through gray in between, by interpolating a hue component instead or red, green, and blue?

Yes, it would. That is why the working colorspace part of CSS Color 4 will not just have the two values sRGB and linearRGB but also the other colorspaces defined there ([predefined RGB spaces like `image-p3` and `rec2020`](https://drafts.csswg.org/css-color-4/#predefined), [CIE Lab and LCH](https://drafts.csswg.org/css-color-4/#lab-colors). LCH in particular will give the hue-angle interpolation you mentioned.

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/366#issuecomment-461406983 using your GitHub account

Received on Thursday, 7 February 2019 12:52:24 UTC