PendContour
processingUse the PbeginContour
and PendContour
function to create negative shapes within shapes such as the center of the letter 'O'. PbeginContour
begins recording vertices for the shape and PendContour
stops recording. The vertices that define a negative shape must "wind" in the opposite direction from the exterior shape. First draw vertices for the exterior shape in clockwise order, then for internal shapes, draw vertices counterclockwise.
These functions can only be used within a PbeginShape
/PendShape
pair and transformations such as Ptranslate
, Protate
, and Pscale
do not work within a PbeginContour
/PendContour
pair. It is also not possible to use other shapes, such as Pellipse
or Prect
within.