fletcher.paths.trim-path()

Shorten a path from either end by subpath/segment index and 𝑡-parameter (not by path length, see cetz.path-util.shorten-to for that).

fletcher.paths.trim-path(
  path,
  from,
  to,
)

path

CeTZ drawable, a dictionary containing key "segments".

from

default none

Path index (subpath-i, segment-i, t) to start the path from.

to

default none

Path index (subpath-i, segment-i, t) to terminate the path at.