Re: [csswg-drafts] [css-images] Mesh gradient / Freeform gradient (#7648)

There was a `<meshgradient>` element suggested for SVG2, although it's been withdrawn. It remains in the svg-next proposals,  see https://svgwg.org/svg-next/pservers.html#MeshGradients

We've implemented it, it's complex and trying to represent it as a function would be horrendous. If it ever makes it back into SVG it will be usable as a `background-image` and I would suggest that's probably the best approach.

For future reference, these are also called "Coons Patch" (or "tensor-product patch" mesh gradients, for the bicubic interpolation mode) and the maths is all defined in section 8.7.4.5.6 of the PDF spec, older versions of which are still publicly available. The SVG model is almost identical.

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


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

Received on Thursday, 25 August 2022 08:40:15 UTC