Re: [csswg-drafts] [css-color-5] color-extract() function to extract individual color components (#6937)

Example of creating a new color with the lightness and chroma of one color and the hue of another:
```css
--color3: oklch(
 color-extract(oklch l from var(--color1))
 color-extract(oklch c from var(--color1))
 color-extract(oklch h from var(--color2))
 /
 color-extract(lch alpha from var(--color1))
);
```

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6937#issuecomment-1011377449 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 12 January 2022 19:24:31 UTC