Skip to main content

Interface: ArrowVectorFieldOptions

Defined in: src/mobjects/graphing/VectorField.ts:95

Options for ArrowVectorField

Extends​

Properties​

color?​

optional color: string | ColorFunction

Defined in: src/mobjects/graphing/VectorField.ts:81

Color function or static color. Default: magnitude-based gradient

Inherited from​

VectorFieldBaseOptions.color


func​

func: VectorFunction

Defined in: src/mobjects/graphing/VectorField.ts:73

The vector function mapping (x, y) to [vx, vy]

Inherited from​

VectorFieldBaseOptions.func


lengthScale?​

optional lengthScale: number

Defined in: src/mobjects/graphing/VectorField.ts:79

Length scaling factor for vectors. Default: 1

Inherited from​

VectorFieldBaseOptions.lengthScale


maxArrowLength?​

optional maxArrowLength: number

Defined in: src/mobjects/graphing/VectorField.ts:99

Maximum visual length for each arrow. Default: 0.8 (step size)


maxMagnitude?​

optional maxMagnitude: number

Defined in: src/mobjects/graphing/VectorField.ts:85

Maximum magnitude threshold (vectors are capped). Default: Infinity

Inherited from​

VectorFieldBaseOptions.maxMagnitude


minMagnitude?​

optional minMagnitude: number

Defined in: src/mobjects/graphing/VectorField.ts:83

Minimum magnitude threshold (vectors smaller are not drawn). Default: 0

Inherited from​

VectorFieldBaseOptions.minMagnitude


normalizeArrows?​

optional normalizeArrows: boolean

Defined in: src/mobjects/graphing/VectorField.ts:101

Whether to normalize all arrows to the same length. Default: false


opacity?​

optional opacity: number

Defined in: src/mobjects/graphing/VectorField.ts:89

Opacity. Default: 1

Inherited from​

VectorFieldBaseOptions.opacity


strokeWidth?​

optional strokeWidth: number

Defined in: src/mobjects/graphing/VectorField.ts:87

Stroke width. Default: DEFAULT_STROKE_WIDTH / 2

Inherited from​

VectorFieldBaseOptions.strokeWidth


tipLength?​

optional tipLength: number

Defined in: src/mobjects/graphing/VectorField.ts:97

Length of arrow tips. Default: 0.15


xRange?​

optional xRange: [number, number, number]

Defined in: src/mobjects/graphing/VectorField.ts:75

X range as [min, max, step]. Default: [-5, 5, 0.5]

Inherited from​

VectorFieldBaseOptions.xRange


yRange?​

optional yRange: [number, number, number]

Defined in: src/mobjects/graphing/VectorField.ts:77

Y range as [min, max, step]. Default: [-3, 3, 0.5]

Inherited from​

VectorFieldBaseOptions.yRange