reverseContourPointPen

PointPen for reversing the winding direction of contours.

class ReverseContourPointPen(outputPointPen)

This is a PointPen that passes outline data to another PointPen, but reversing the winding direction of all contours. Components are simply passed through unchanged.

Closed contours are reversed in such a way that the first point remains the first point.

links