Interface: StreamLinesOptions
Defined in: mobjects/graphing/VectorField.ts:63
Options for StreamLines
Extends
Properties
arrowSpacing?
optionalarrowSpacing:number
Defined in: mobjects/graphing/VectorField.ts:79
Spacing between arrows on streamlines. Default: 1
color?
optionalcolor:string|ColorFunction
Defined in: mobjects/graphing/VectorField.ts:37
Color function or static color. Default: magnitude-based gradient
Inherited from
func
func:
VectorFunction
Defined in: mobjects/graphing/VectorField.ts:29
The vector function mapping (x, y) to [vx, vy]
Inherited from
lengthScale?
optionallengthScale:number
Defined in: mobjects/graphing/VectorField.ts:35
Length scaling factor for vectors. Default: 1
Inherited from
VectorFieldBaseOptions.lengthScale
maxAnchorsPerLine?
optionalmaxAnchorsPerLine:number
Defined in: mobjects/graphing/VectorField.ts:83
Maximum anchor points per line (downsamples if exceeded). Default: 100
maxLineLength?
optionalmaxLineLength:number
Defined in: mobjects/graphing/VectorField.ts:69
Maximum length of each streamline. Default: 10
maxMagnitude?
optionalmaxMagnitude:number
Defined in: mobjects/graphing/VectorField.ts:41
Maximum magnitude threshold (vectors are capped). Default: Infinity
Inherited from
VectorFieldBaseOptions.maxMagnitude
minMagnitude?
optionalminMagnitude:number
Defined in: mobjects/graphing/VectorField.ts:39
Minimum magnitude threshold (vectors smaller are not drawn). Default: 0
Inherited from
VectorFieldBaseOptions.minMagnitude
minSteps?
optionalminSteps:number
Defined in: mobjects/graphing/VectorField.ts:73
Minimum step count before stopping. Default: 3
noiseFactor?
optionalnoiseFactor:number
Defined in: mobjects/graphing/VectorField.ts:85
Noise added to grid start points. Default: yRange step / 2
nRepeats?
optionalnRepeats:number
Defined in: mobjects/graphing/VectorField.ts:89
Number of lines per grid point. Default: 1
numLines?
optionalnumLines:number
Defined in: mobjects/graphing/VectorField.ts:65
Number of streamlines to draw. Default: 15
opacity?
optionalopacity:number
Defined in: mobjects/graphing/VectorField.ts:45
Opacity. Default: 1
Inherited from
VectorFieldBaseOptions.opacity
padding?
optionalpadding:number
Defined in: mobjects/graphing/VectorField.ts:87
Padding beyond range boundaries for line termination. Default: 3
showArrows?
optionalshowArrows:boolean
Defined in: mobjects/graphing/VectorField.ts:77
Whether to draw arrows along streamlines. Default: false
startPoints?
optionalstartPoints: [number,number][]
Defined in: mobjects/graphing/VectorField.ts:67
Starting points for streamlines. If not provided, generated automatically.
stepSize?
optionalstepSize:number
Defined in: mobjects/graphing/VectorField.ts:71
Integration step size. Default: 0.05
strokeWidth?
optionalstrokeWidth:number
Defined in: mobjects/graphing/VectorField.ts:43
Stroke width. Default: DEFAULT_STROKE_WIDTH / 2
Inherited from
VectorFieldBaseOptions.strokeWidth
variableWidth?
optionalvariableWidth:boolean
Defined in: mobjects/graphing/VectorField.ts:75
Line width variation based on magnitude. Default: false
virtualTime?
optionalvirtualTime:number
Defined in: mobjects/graphing/VectorField.ts:81
Total virtual time for the simulation. Default: 3
xRange?
optionalxRange: [number,number,number]
Defined in: mobjects/graphing/VectorField.ts:31
X range as [min, max, step]. Default: [-5, 5, 0.5]
Inherited from
yRange?
optionalyRange: [number,number,number]
Defined in: mobjects/graphing/VectorField.ts:33
Y range as [min, max, step]. Default: [-3, 3, 0.5]