Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Cut A Curve Without Moving It

Cuts hide intervals on the completed curve. Optional indicators are independent; the remaining pieces retain the original geometry.

Complete editable source

No Setup

Source

#context {
  let path = deixis-route(
    from: (0pt, 25pt),
    to: (210pt, 25pt),
    route: "curve",
    via: ((70pt, 0pt), (140pt, 50pt)))
  let paint = deixis-prepare-connector(
    path, stroke: teal + 1pt,
    heads: (body: "stealth"),
    cuts: (at: 50%, length: 18pt),
    gap-marks: "slash")
  box(width: 220pt, height: 70pt,
    place(top + left, dy: 25pt,
      deixis-render-connector(paint)))
}