graphinglib.Polygon.create_difference#
- Polygon.create_difference(other: Self, copy_style: bool = False) Self [source]#
Returns the difference of the polygon with another polygon.
- Parameters:
- other
Polygon
The other polygon to subtract from the current polygon.
- copy_stylebool, optional
If
True
, the current polygon’s parameters are copied to the new polygon. IfFalse
, the new polygon will have default parameters. Default isFalse
.
- other
- Returns:
Polygon
The difference of the two polygons.