SVG Bezier Curve that does nothing | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

SVG Bezier Curve that does nothing

I try to morphose SVG paths. It works more or less. At the moment I struggle with Bezier curves: If path1 has from data eg 17 a Bezier Curve, I add it to path2 as c0 0 0 0 0 0 My hope was, that it does nothing.But it changes much. See here, where the first path has 2 c0 0 0 0 0 0 It should be the letter 0, but the beziers destroy it. What can I do? https://code.sololearn.com/WvyA4BJ3Hiqh/#html

22nd Sep 2020, 3:42 PM
Oma Falk
Oma Falk - avatar
4 Answers
22nd Sep 2020, 3:45 PM
Oma Falk
Oma Falk - avatar
+ 2
Frogged File "./Playground/file0.py", line 1 shapes = {"c":["c0","0","0","0","0","0"],"m":["m0","0"],"l":["l0","0"], "h":["h0"]"v":["v0"]} ^ SyntaxError: invalid syntax
23rd Sep 2020, 7:03 AM
Alexander Thiem
Alexander Thiem - avatar
+ 2
Alexander Thiem done.. thanks
23rd Sep 2020, 7:15 AM
Oma Falk
Oma Falk - avatar
+ 1
I fear I cant help you anymore, but what your code does at the moment is fascinating and looks very complex!
23rd Sep 2020, 4:28 PM
Alexander Thiem
Alexander Thiem - avatar