Interface: TitleOptions
Defined in: mobjects/text/TextExtensions.ts:276
Options for creating a Title mobject
Properties
color?
optionalcolor:string
Defined in: mobjects/text/TextExtensions.ts:286
Text color as CSS color string. Default: '#ffffff'
fillOpacity?
optionalfillOpacity:number
Defined in: mobjects/text/TextExtensions.ts:288
Fill opacity from 0 to 1. Default: 1
fontFamily?
optionalfontFamily:string
Defined in: mobjects/text/TextExtensions.ts:282
Font family. Default: 'sans-serif'
fontSize?
optionalfontSize:number
Defined in: mobjects/text/TextExtensions.ts:280
Font size in pixels. Default: 72 (large)
fontWeight?
optionalfontWeight:string|number
Defined in: mobjects/text/TextExtensions.ts:284
Font weight. Default: 'bold'
includeUnderline?
optionalincludeUnderline:boolean
Defined in: mobjects/text/TextExtensions.ts:290
Whether to include an underline. Default: false
text
text:
string
Defined in: mobjects/text/TextExtensions.ts:278
The title text to display
underlineBuffer?
optionalunderlineBuffer:number
Defined in: mobjects/text/TextExtensions.ts:298
Space between text and underline in world units. Default: 0.15
underlineColor?
optionalunderlineColor:string
Defined in: mobjects/text/TextExtensions.ts:292
Underline color. Default: same as text color
underlineStrokeWidth?
optionalunderlineStrokeWidth:number
Defined in: mobjects/text/TextExtensions.ts:296
Underline stroke width. Default: 4
underlineWidth?
optionalunderlineWidth:number
Defined in: mobjects/text/TextExtensions.ts:294
Underline width in world units. Default: auto (match text width)
yPosition?
optionalyPosition:number
Defined in: mobjects/text/TextExtensions.ts:300
Y position from top of frame. Default: 3.5 (near top of standard 8-unit frame)