K
K
Konstantin2020-01-24 18:11:33
SVG
Konstantin, 2020-01-24 18:11:33

How to decode SVG command?

<path class="st1" d="M68,31.3c0,11.2-7.6,20.7-17.8,23.5c-2,0.5-4.9,2.2-6.2,8.3c-1.6-6-4.3-7.8-6.3-8.3      C27.5,51.9,20,42.5,20,31.3C20,17.9,30.7,7,44,7C57.3,7,68,17.9,68,31.3z"/>

How to decrypt it.
M - starting point - what is it in this example?
M68.31.3 or M68.31.3c0?
How to further split the path into commands?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lynn "Coffee Man", 2020-01-24
@Lynn

All letters are commands.
Everything else is numbers.
Numbers are separated by commas, spaces, or otherwise you get something weird.
So
M 68, 31.3because the letter comes next, i.e. another team.
11.2-7.6- parsed as two numbers 11.2 and -7.6 because a hyphen cannot be in the middle of a number.
etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question