- From: Sebastian Zartner via GitHub <sysbot+gh@w3.org>
- Date: Thu, 25 Aug 2022 20:33:27 +0000
- To: public-css-archive@w3.org
> We've implemented it, it's complex and trying to represent it as a function would be horrendous.
@JoshTumath already provided an example for a more simplistic approach.
Written in CSS syntax, it would be
```
mesh-gradient([<length-percentage>{2} <color>]#{2,})
```
I assume that would restrict the interpolation between the color stops to be linear, though that probably already covers a lot of use cases.
And the syntax could still be extended in the future to allow Coons Patches if required.
As I understand it, Adobe's freeform gradients are restricted to four colors, which probably also cover many use cases but it's a big restriction if you want to create arbitrary gradients.
Sebastian
--
GitHub Notification of comment by SebastianZ
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7648#issuecomment-1227734141 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 20:33:29 UTC