Skip to main content

Interface: WriteWithPenOptions

Defined in: src/mobjects/writing-pen/writeWithPen.ts:9

Options for writeWithPen.

Properties​

animation?​

optional animation: "write" | "create"

Defined in: src/mobjects/writing-pen/writeWithPen.ts:15

Reveal animation to pair with the pen. Default 'write'.


duration?​

optional duration: number

Defined in: src/mobjects/writing-pen/writeWithPen.ts:17

Duration in seconds. Default 1 for 'write', 2 for 'create'.


lagRatio?​

optional lagRatio: number

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

Stagger between family members of a group target. Default 1.


pen?​

optional pen: WritingPen

Defined in: src/mobjects/writing-pen/writeWithPen.ts:11

Pen to move. Default: a new vector WritingPen.


penOptions?​

optional penOptions: WritingPenOptions

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

Options for the default pen. Ignored when pen is given.


rateFunc?​

optional rateFunc: RateFunction

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

Rate function shared by the reveal and the pen.


removePen?​

optional removePen: boolean

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

Remove the pen from the scene at the end. Default true.