WeasyPrint icon indicating copy to clipboard operation
WeasyPrint copied to clipboard

conic-gradient support?

Open danfitz36 opened this issue 4 years ago • 3 comments

does v53 have this? i saw that some other gradient things might be fixed.

danfitz36 avatar Jun 01 '21 17:06 danfitz36

Hello!

It’s not in version 53, but it would be a good thing to have! It’s not easy, because conic gradients are not directly supported in PDF, but they probably can be implemented using mesh patterns.

liZe avatar Jun 04 '21 19:06 liZe

I'm hoping to do something like this, if there's another way I'd love to explore it. that entire circle can be made with a single gradient, but i'm not sure how else to make it work. for now i'm using an svg with a flat color.

conic

danfitz36 avatar Jun 04 '21 20:06 danfitz36

Using a green elliptical arc curve in front of a white circle should work too. It’s not easy to get the right parameters, but definitely possible.

liZe avatar Jun 04 '21 20:06 liZe