Graphics Programs Reference
In-Depth Information
Figure 5-5. A filled shape
150 50 m 150 250 l 250 50 l 50 150 l 350 150 l h f
550 50 m 550 250 l 650 50 l 450 150 l 750 150 l h f*
Here, we've also used the
re
operator. This creates a rectangular, closed path given four
arguments: minimum
x
, minimum
y
, width, and height.
Table 5-6. Operators for filling and stroking paths
Operator
Function
n
Ends the path with no visual effect. This is used to change the current clipping path (see
“Clipping” on page 65
).
b
Close, fill and stroke the path (non-zero winding rule)
b*
Close, fill and stroke the path (even-odd winding rule)
B
Fill and stroke the path (non-zero winding rule)
B*
Fill and stroke the path (even-odd winding rule)
f
or
F
Fill the path (non-zero winding rule)
f*
Fill the path (even-odd winding rule)
S
Stroke the path
s
Close and stroke the path