Interface: VariableOptions
Defined in: mobjects/text/Variable.ts:17
Options for creating a Variable mobject
Properties
fontSize?
optionalfontSize:number
Defined in: mobjects/text/Variable.ts:33
Font size for the value. Default: 48
includeSign?
optionalincludeSign:boolean
Defined in: mobjects/text/Variable.ts:27
Whether to show + sign for positive values. Default: false
label
label:
string
Defined in: mobjects/text/Variable.ts:19
The variable name/label (rendered as LaTeX). Example: 'x', '\theta', 'time'
labelBuff?
optionallabelBuff:number
Defined in: mobjects/text/Variable.ts:35
Buffer between label and equals sign. Default: 0.1
labelColor?
optionallabelColor:string
Defined in: mobjects/text/Variable.ts:29
Color for the label. Default: '#ffffff'
numDecimalPlaces?
optionalnumDecimalPlaces:number
Defined in: mobjects/text/Variable.ts:23
Options for the decimal number display
showEllipsis?
optionalshowEllipsis:boolean
Defined in: mobjects/text/Variable.ts:25
Whether to show ellipsis after the value. Default: false
value?
optionalvalue:number
Defined in: mobjects/text/Variable.ts:21
Initial numeric value. Default: 0
valueBuff?
optionalvalueBuff:number
Defined in: mobjects/text/Variable.ts:37
Buffer between equals sign and value. Default: 0.1
valueColor?
optionalvalueColor:string
Defined in: mobjects/text/Variable.ts:31
Color for the value. Default: '#ffffff'