Curveto with <path> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Curveto with <path>

How to draw curve with C in d of path?

15th Oct 2018, 10:06 AM
Gordon
Gordon - avatar
4 Answers
0
C x1 y1 cx cy x2 y2
15th Oct 2018, 10:22 AM
Roel
Roel - avatar
+ 1
Roel Thanks. Though not so clear and I still have to goggle a little bit. At last, I used d="M 50 70 C 70 90, 90 90, 110 70" for a smile in a svg canvas of 160x160px. Begin with move to start coordinate, C, then two controls points, then end point.
15th Oct 2018, 11:14 AM
Gordon
Gordon - avatar
+ 1
try to have the x1 and y1 the same as the M 50 70 M 50 70 C 50 70 75 90 100 70 would be a nice smile btw the cx = where the most deep point is, so 50 70 100(!) 90 100 70 would be a triangle, since the cx is the same as the x2
15th Oct 2018, 1:55 PM
Roel
Roel - avatar
+ 1
https://code.sololearn.com/WpS4104kM7K2/?ref=app this are some practises for svg
17th Oct 2018, 5:04 AM
Roel
Roel - avatar