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

Investigate SVG shadows #8

Open
sudara opened this issue Nov 8, 2023 · 1 comment
Open

Investigate SVG shadows #8

sudara opened this issue Nov 8, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@sudara
Copy link
Owner

sudara commented Nov 8, 2023

No description provided.

@sudara sudara added the enhancement New feature or request label Nov 8, 2023
@sudara
Copy link
Owner Author

sudara commented Mar 27, 2024

A few issues with this:

  • Drawable::createFromSVG produces a DrawableComposite — and from there there's no way to directly get at a juce::Path.
  • SVGs can be made out of many paths, each one will actually be its own Drawable in JUCE
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M18 4H6" stroke="black" stroke-width="2"/>
<path d="M18 8H6" stroke="black" stroke-width="2"/>
<path d="M18 12H6" stroke="black" stroke-width="2"/>
<path d="M18 16H6" stroke="black" stroke-width="2"/>
<path d="M18 20H6" stroke="black" stroke-width="2"/>
</svg>

So probably the answer is to "flatten" the svg to a single color image with alpha and then blur that...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant