knots.path.as_outline#
- knots.path.as_outline(knot: Knot, width: float = 7, *, thresh=128) Path[source]#
Generate the (compound) path of the outline of the knot ribbon.
This works by generating the mask of the knot and then extracting a contour at a given gray level.
- Parameters:
- knotKnot
The knot to generate mask of
- widthfloat, default7
The width of the ribbon in points.
- threshint, default: 128
The level to generate the contour at
- Returns: