Skip to main content

🚧 Pen Mode

Freehand drawing is available through the editor's brush mode, which produces pressure-sensitive strokes (BrushElement). It is the pen-like tool today.

import { Editor } from "@oh-just-another/state";

declare const editor: Editor;
editor.setMode("brush");

A distinct "pen mode" with vector node editing (click-to-place anchor points, BΓ©zier handle dragging) is planned β€” not yet available. For variable-width freehand strokes, use brush mode; see Scribble for the underlying BrushElement and BrushPoint shape.