Skip to main content

Interface: CameraFocusOptions

Defined in: src/animation/camera/CameraFocus.ts:14

Extends​

Properties​

distance?​

optional distance: number

Defined in: src/animation/camera/CameraFocus.ts:18

Camera distance from the look-at point. Overrides fill.


duration?​

optional duration: number

Defined in: src/animation/Animation.ts:16

Duration of the animation in seconds (default: 1)

Inherited from​

AnimationOptions.duration


fill?​

optional fill: number

Defined in: src/animation/camera/CameraFocus.ts:24

Fraction of the frame's shorter half-extent the target's radius fills (0..1]. Used when distance is not given and the target is a mobject. Default: 0.5


phi?​

optional phi: number

Defined in: src/animation/camera/CameraFocus.ts:26

Target polar angle (radians). Default: keep the current angle.


rateFunc?​

optional rateFunc: RateFunction

Defined in: src/animation/Animation.ts:18

Rate function controlling the animation's pacing (default: smooth)

Inherited from​

AnimationOptions.rateFunc


runTime?​

optional runTime: number

Defined in: src/animation/camera/CameraFocus.ts:16

Alias of duration (Manim's run_time). Default: 1.5


screenOffset?​

optional screenOffset: [number, number]

Defined in: src/animation/camera/CameraFocus.ts:34

Where the target lands on screen, in fixed-in-frame units (the HUD frame). [0, 0] is the frame centre; [0, 1] puts the target 1 unit above it, leaving room for a caption below. Default: [0, 0]


shift?​

optional shift: [number, number, number]

Defined in: src/animation/Animation.ts:20

Shift direction for fade animations

Inherited from​

AnimationOptions.shift


theta?​

optional theta: number

Defined in: src/animation/camera/CameraFocus.ts:28

Target azimuthal angle (radians). Default: keep the current angle.