@mocanvas/mocanvas · function

traceCross

declare function traceCross(ctx: CanvasRenderingContext2D, x: number, y: number, arm: number): void

An × centred on a point, as the snap layer marks an aligned edge.

Drawn as a path rather than two line calls so a caller can stroke it in one go with the rest of the guide.

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.