コンテンツへスキップ
uencoder

SVG Path データ リファレンス

リファレンス 用 SVG path commands: moveto, lineto, curve, arc, および その parameters.

Path Commands

SVG paths use a compact command syntax with letters followed by numeric parameters. M/m moves the pen (absolute/relative). L/l draws lines, H/h and V/v draw horizontal/vertical lines. C/c draws cubic Bezier curves with two control points. Q/q draws quadratic Beziers with one control point. A/a draws elliptical arcs with endpoint parameterization.

M/m
Moveto (abs/rel)
M 10 10
C/c
Cubic Bezier
C 20 20 40 20 50 10
A/a
Elliptical arc
A 25 25 0 0 1 50 25

Curves and Arcs

Cubic Beziers (C) use two control points defining the tangent at start and end. Quadratic Beziers (Q) use one control point shared by both endpoints. Smooth curves (S/T) infer control points from the previous curve for continuity. Arc parameters are rx, ry, x-axis-rotation, large-arc-flag, sweep-flag, x, y. The Z/z command closes the path. Path data can be optimized by removing redundant commands.

S/T
Smooth curves
inferred control
arc flags
large-arc, sweep
0/1 each
Z/z
Close path
return to start

関連ツール

参考链接