draw#

draw(expr, translate=0j)#

Quick polyline drawing of an algebraic tangle.

Heavy imports are local to keep module import time low.

Parameters:
  • expr – Tangle expression (int | TangleExpr).

  • translate (complex) – Complex offset applied to all points before plotting.