@mocanvas/mocanvas · interface

StrokeTerminalOptions

interface StrokeTerminalOptions

How a stroke's start or end is shaped.


Properties · 3

cap?: boolean

Round the terminal off, instead of cutting it square.

easing?(distance: number): number

Reshapes the taper over its length; distance runs 0→1.

taper?: boolean | number

true for a taper as long as the stroke's own width, or an explicit length.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.