PShape with Contour

Processing PShape with Contour

Examples in the tabs below show details for specifying vertices to create an inner-cutout using the PShape methods: beginContour ( ), endContour( ). Note that vertex points specified to create a contour must be listed in reverse rotational order than what was used to specify the initial vertex points for the shape.

Notice: the initial 6 vertex points listed below are specified in clockwise order To specify contour vertex points, the order must be reversed - counter-clockwise. Often you may choose to repeat points (see point 6 ), in the code. Note: when specifying contour points, complex shapes can result.

Repeat Pattern using PShape with contour

The image below shows an intricate pattern created using a recursive function and a PShape that has an inner cut-out, contour.

Last updated