Atrium — shared contracts and the typesetting engine
    Preparing search index...

    Function nibPasses

    • The passes that draw one stroke of tool at size (already in STROKE_VB units — i.e. stroke.size * STROKE_VB).

      realPressure says whether the points carry genuine stylus pressure; when they do not, perfect-freehand simulates it from velocity, which is what lets a mouse-drawn line still taper.

      Parameters

      • tool: "pen" | "fountain-pen" | "pencil" | "highlighter"
      • size: number
      • realPressure: boolean

      Returns NibPass[]