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
support using SVG path data when creating a Path2D path #1198
Labels
Comments
obiot
added a commit
that referenced
this issue
Dec 27, 2023
unoptimized and only works for basic shapes for now
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Event though the Path2D implementation has been greatly improved over the last few versions (e.g. better API and support for subpaths), it is not possible today to create a Path2D using a SVG path.
Expected behavior
Extend or finalise the current Path2D implementation in melonJS to accept SVG path such as
M173 102a51 51 0 1 1-13-30m20 37h-53
, so that SVG can properly be rendered/scaled/transformed/animated in WebGL.Additional context
https://css-tricks.com/rendering-svg-paths-in-webgl/
The text was updated successfully, but these errors were encountered: