Table 59 – Path Construction Operators

Operands

Operator

Description

x y

m

Begin a new subpath by moving the current point to coordinates (x, y), omitting any connecting line segment. If the previous path construction operator in the current path was also m, the new m overrides it; no vestige of the previous m operation remains in the path.

x y

l (lowercase L)

Append a straight line segment from the current point to the point (x, y). The new current point shall be (x, y).

x 1 y 1 x 2 y 2 x 3 y 3

c

Append a cubic Bézier curve to the current path. The curve shall extend from the current point to the point (x 3 , y 3 ), using (x 1 , y 1 ) and (x 2 , y 2 ) as the Bézier control points (see 8.5.2.2, "Cubic Bézier Curves" ). The new current point shall be (x 3 , y 3 ).

x 2 y 2 x 3 y 3

v

Append a cubic Bézier curve to the current path. The curve shall extend from the current point to the point (x 3 , y 3 ), using the current point and (x 2 , y 2 ) as the Bézier control points (see 8.5.2.2, "Cubic Bézier Curves" ). The new current point shall be (x 3 , y 3 ).

x 1 y 1 x 3 y 3

y

Append a cubic Bézier curve to the current path. The curve shall extend from the current point to the point (x 3 , y 3 ), using (x 1 , y 1 ) and (x 3 , y 3 ) as the Bézier control points (see 8.5.2.2, "Cubic Bézier Curves" ). The new current point shall be (x 3 , y 3 ).

h

Close the current subpath by appending a straight line segment from the current point to the starting point of the subpath. If the current subpath is already closed, h shall donothing.

This operator terminates the current subpath. Appending another segment to the current path shall begin a new subpath, even if the new segment begins at the endpoint reached by the h operation.

x y width height

re

Append a rectangle to the current path as a complete subpath, with lower-left corner (x, y) and dimensions widthand height in user space. The operation

x y width height re

is equivalent to

x y m ( x + width ) y l ( x + width ) ( y + height ) l x ( y + height ) l h