Skip to main content

Interface: WritingPenOptions

Defined in: src/mobjects/writing-pen/WritingPen.ts:7

Options for WritingPen.

Properties​

color?​

optional color: string

Defined in: src/mobjects/writing-pen/WritingPen.ts:21

Color of the built-in vector pen. Default: white.


length?​

optional length: number

Defined in: src/mobjects/writing-pen/WritingPen.ts:23

Length of the built-in pen barrel in scene units. Default: 0.8.


tip?​

optional tip: Mobject

Defined in: src/mobjects/writing-pen/WritingPen.ts:13

Custom mobject used as the pen body (for example an ImageMobject of a hand). When omitted, the pen is a vector nib and barrel built from polygons, so no image asset is needed.


tipOffset?​

optional tipOffset: Vector3Tuple

Defined in: src/mobjects/writing-pen/WritingPen.ts:19

Position of the nib tip in the pen's local frame, relative to the pen origin. Default [0, 0, 0], which matches the built-in vector pen. For a custom tip, set this to the fingertip or nib point of that mobject.