Function ticksOnLine

Create equally spaced tick marks centered at the midpoint of a line

  • Parameters

    • pt1: Vec2

      starting point of a line

    • pt2: Vec2

      ending point of a line

    • spacing: Num

      space in px between each tick

    • numTicks: number

      number of tick marks to create

    • tickLength: Num

      1/2 length of each tick

    Returns PathData

    Path data for tick marks