melonJS
melonJS copied to clipboard
[Feature request] Extend the current "simple" Path2D implementation
Is your feature request related to a problem? Please describe. Yes, SVG files can only be loaded/rendered as "regular" image file.
Describe the solution you'd like
Extend or finalise the current Path2D implementation in melonJS to support multiple path (currently only support one) and 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/