7.7 Path summary
Command
Arguments
Effect
M m
x y p q
Move to given coordinates x y.
Move p units right, q units down (if p>0, if q>0)
Move p units right, q units down (if p>0, if q>0)
L l
x y p q
Draw a line to the given coordinates.
You may supply multiple sets of coordinates to draw a polyline.
You may supply multiple sets of coordinates to draw a polyline.
H h
x p
Draw a horizontal line to the given x-coordinate
Draw p units to the right (if p>0)
V v
y q
Draw a horizontal line to the given y-coordinate
Draw p units down (if q>0)
A a
M x_s, y_s A rx ry angle large-arc sweep x_e, y_e
Move to the current point for start (x_s, y_s)
Draw an elliptical arc from the current point (x_s, y_s) to (x_e, y_e).
The points are on an ellipse with x-radius rx and y-radius ry.
The ellipse is rotated x-axis-rotation degrees.
large-arc = 0 if arc<half of ellipse; large-arc = 1 if arc≥half of ellipse;
sweep = 0 if dirction is anticlockwise; sweep = 1 if dirction is clockwise from start to end
end point
Draw an elliptical arc from the current point (x_s, y_s) to (x_e, y_e).
The points are on an ellipse with x-radius rx and y-radius ry.
The ellipse is rotated x-axis-rotation degrees.
large-arc = 0 if arc<half of ellipse; large-arc = 1 if arc≥half of ellipse;
sweep = 0 if dirction is anticlockwise; sweep = 1 if dirction is clockwise from start to end
end point
Q q
M x1, y1 Q x2 y2 x3 y3
Move to the current point for start (x1, y1)
Draw Bezier quadratic curve (x1, y1) to (x3, y3).
Control point (x2,y2).
end point (x3, y3)
Draw Bezier quadratic curve (x1, y1) to (x3, y3).
Control point (x2,y2).
end point (x3, y3)
T t
T x4 y4
Smoothly connects two Bezier quadratic curves at the point (x3, y3) to the end (x4 y4)
T creates a new control point between (x3,y3) and (x4,y4) by reflection of the previues control (x2,y2) point around the last current point (x3,y3).
T creates a new control point between (x3,y3) and (x4,y4) by reflection of the previues control (x2,y2) point around the last current point (x3,y3).
C c
M x1, y1 C x2 y2 x3 y3 x4 y4
Move to the current point for start (x1, y1)
Draw Bezier quadratic curve (x1, y1) to (x4, y4).
Control point (x2,y2).
Control point (x3,y3).
end point (x4, y4)
Draw Bezier quadratic curve (x1, y1) to (x4, y4).
Control point (x2,y2).
Control point (x3,y3).
end point (x4, y4)
S s
S x5 y5 x6 y6
control point for (x6,y6)
end point (x6,y6)
Smoothly connects two Bezier quadratic curves at the point (x4, y4) to the end (x6 y6).
S creates a new control point after (x4,y4) by reflection of the previous control (x3,y3) point around the last current point (x4,y4). Then (x5,y5) is the next control point for the last point (x6 y6).
end point (x6,y6)
Smoothly connects two Bezier quadratic curves at the point (x4, y4) to the end (x6 y6).
S creates a new control point after (x4,y4) by reflection of the previous control (x3,y3) point around the last current point (x4,y4). Then (x5,y5) is the next control point for the last point (x6 y6).