Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering gradients leaves white solid fill #8

Open
stellaurora opened this issue Mar 5, 2022 · 3 comments
Open

Rendering gradients leaves white solid fill #8

stellaurora opened this issue Mar 5, 2022 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@stellaurora
Copy link

stellaurora commented Mar 5, 2022

In attempting to draw an SVG that contains a gradient a solid while fill of the same shape as the svg is just left
image

im not too sure why this happens sorry but the intended result is for it to draw something that looks like:
image

Heres the svg file im trying to render:
platformsvg.txt

@Weasy666
Copy link
Owner

Weasy666 commented Mar 5, 2022

Hm...i'll take a look at it. Thanks for reporting! 🙂

@stellaurora
Copy link
Author

Thank you

@Weasy666
Copy link
Owner

So...it doesn't work because bevy_svg currently only draws usvg::NodeKind::Path (here) and ignores every other kind of node.

Looking at resvg makes me think, that a not too small amount of work would be needed to make gradients work. I would really like to have this in bevy_svg, but i don't currently have the bandwidth to do it myself. So, if anyone wants to step up, feel free to do so and ask me if you need any help.

@Weasy666 Weasy666 added the enhancement New feature or request label Mar 12, 2022
@Weasy666 Weasy666 added the help wanted Extra attention is needed label Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants