Skip to main content

Interface: TitleOptions

Defined in: src/mobjects/text/TextExtensions.ts:274

Options for creating a Title mobject

Properties​

color?​

optional color: string

Defined in: src/mobjects/text/TextExtensions.ts:284

Text color as CSS color string. Default: '#ffffff'


fillOpacity?​

optional fillOpacity: number

Defined in: src/mobjects/text/TextExtensions.ts:286

Fill opacity from 0 to 1. Default: 1


fontFamily?​

optional fontFamily: string

Defined in: src/mobjects/text/TextExtensions.ts:280

Font family. Default: 'sans-serif'


fontSize?​

optional fontSize: number

Defined in: src/mobjects/text/TextExtensions.ts:278

Font size in pixels. Default: 72 (large)


fontWeight?​

optional fontWeight: string | number

Defined in: src/mobjects/text/TextExtensions.ts:282

Font weight. Default: 'bold'


includeUnderline?​

optional includeUnderline: boolean

Defined in: src/mobjects/text/TextExtensions.ts:288

Whether to include an underline. Default: false


text​

text: string

Defined in: src/mobjects/text/TextExtensions.ts:276

The title text to display


underlineBuffer?​

optional underlineBuffer: number

Defined in: src/mobjects/text/TextExtensions.ts:296

Space between text and underline in world units. Default: 0.15


underlineColor?​

optional underlineColor: string

Defined in: src/mobjects/text/TextExtensions.ts:290

Underline color. Default: same as text color


underlineStrokeWidth?​

optional underlineStrokeWidth: number

Defined in: src/mobjects/text/TextExtensions.ts:294

Underline stroke width. Default: 4


underlineWidth?​

optional underlineWidth: number

Defined in: src/mobjects/text/TextExtensions.ts:292

Underline width in world units. Default: auto (match text width)


yPosition?​

optional yPosition: number

Defined in: src/mobjects/text/TextExtensions.ts:298

Y position from top of frame. Default: 3.5 (near top of standard 8-unit frame)