Interface: VectorFieldBaseOptions
Defined in: mobjects/graphing/VectorField.ts:26
Base options for all vector field types
Extended by
Properties
color?
optionalcolor:string|ColorFunction
Defined in: mobjects/graphing/VectorField.ts:36
Color function or static color. Default: magnitude-based gradient
func
func:
VectorFunction
Defined in: mobjects/graphing/VectorField.ts:28
The vector function mapping (x, y) to [vx, vy]
lengthScale?
optionallengthScale:number
Defined in: mobjects/graphing/VectorField.ts:34
Length scaling factor for vectors. Default: 1
maxMagnitude?
optionalmaxMagnitude:number
Defined in: mobjects/graphing/VectorField.ts:40
Maximum magnitude threshold (vectors are capped). Default: Infinity
minMagnitude?
optionalminMagnitude:number
Defined in: mobjects/graphing/VectorField.ts:38
Minimum magnitude threshold (vectors smaller are not drawn). Default: 0
opacity?
optionalopacity:number
Defined in: mobjects/graphing/VectorField.ts:44
Opacity. Default: 1
strokeWidth?
optionalstrokeWidth:number
Defined in: mobjects/graphing/VectorField.ts:42
Stroke width. Default: DEFAULT_STROKE_WIDTH / 2
xRange?
optionalxRange: [number,number,number]
Defined in: mobjects/graphing/VectorField.ts:30
X range as [min, max, step]. Default: [-5, 5, 0.5]
yRange?
optionalyRange: [number,number,number]
Defined in: mobjects/graphing/VectorField.ts:32
Y range as [min, max, step]. Default: [-3, 3, 0.5]