Hello there!
I’m currently migrating a game I’m currently writing from .png to .svg for better scaling however I’m having issues with using a certain icon from material.io (Settings icon).Processing throws an error when trying to use the following code:
loadShape("settings.svg");
The “settings.svg” is the renamed icon. Processing then throws the following error:
parsed: M,15.95,10.78,c,.03,-.25.05,-.51.05,-.78,s,-.02,-.53,-.06,-.78,l,1.69,-1.32,c,.15,-.12.19,-.34.1,-.51,l,-1.6,-2.77,c,-.1,-.18,-.31,-.24,-.49,-.18,l,-1.99.8,c,-.42,-.32,-.86,-.58,-1.35,-.78,L,12,2.34,c,-.03,-.2,-.2,-.34,-.4,-.34,H,8.4,c,-.2,0,-.36.14,-.39.34,l,-.3,2.12,c,-.49.2,-.94.47,-1.35.78,l,-1.99,-.8,c,-.18,-.07,-.39,0,-.49.18,l,-1.6,2.77,c,-.1.18,-.06.39.1.51,l,1.69,1.32,c,-.04.25,-.07.52,-.07.78,s,.02.53.06.78,L,2.37,12.1,c,-.15.12,-.19.34,-.1.51,l,1.6,2.77,c,.1.18.31.24.49.18,l,1.99,-.8,c,.42.32.86.58,1.35.78,l,.3,2.12,c,.04.2.2.34.4.34,h,3.2,c,.2,0,.37,-.14.39,-.34,l
unparsed: .3,-2.12,c,.49,-.2.94,-.47,1.35,-.78,l,1.99.8,c,.18.07.39,0,.49,-.18,l,1.6,-2.77,c,.1,-.18.06,-.39,-.1,-.51,l,-1.67,-1.32,z,M,10,13,c,-1.65,0,-3,-1.35,-3,-3,s,1.35,-3,3,-3,3,1.35,3,3,-1.35,3,-3,3,z
RuntimeException: shape command not handled: .3
Can’t Processing’s svg-parser handle real numbers? Are there any solutions not involving using a different icon or using a .png variant?
Macbrayne