Skip to main content

Interface: FocusDimOptions

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

Extends​

Properties​

backgroundColor?​

optional backgroundColor: string

Defined in: src/animation/camera/FocusDim.ts:36

Wash target. Default: the scene background colour.


duration?​

optional duration: number

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

Duration of the animation in seconds (default: 1)

Inherited from​

AnimationOptions.duration


leafOpacity()?​

optional leafOpacity: (leaf) => number

Defined in: src/animation/camera/FocusDim.ts:62

Opacity multiplier of one washed leaf, overriding opacity for it (undefined keeps opacity). For example a crowd of tiny instances can fade further than solid neighbours. Default: none

Parameters​

leaf​

Mobject

Returns​

number


mute?​

optional mute: number

Defined in: src/animation/camera/FocusDim.ts:47

How far the toon outline and highlight of a washed 3D mobject fade, 0..1 (see Mobject3D.setToonMute). It moves with the wash, so a dimmed neighbour becomes a quiet shape with no rim. Default: 0.9


occlusion?​

optional occlusion: FocusOcclusion

Defined in: src/animation/camera/FocusDim.ts:56

Hide what stands between the camera and the focus target. A washed leaf whose screen bounds overlap the target's and whose centre is nearer to the camera than the target's centre fades out completely. The test uses camera(), read when the dim starts (for a stop, the camera at the end of its move). Leaves much larger on screen than the target (a whole membrane, a crowd) are not occluders. Default: off


opacity?​

optional opacity: number

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

Opacity multiplier for washed mobjects, 0..1. Default: 0.8


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/FocusDim.ts:30

Alias of duration. Default: 0.8


shift?​

optional shift: [number, number, number]

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

Shift direction for fade animations

Inherited from​

AnimationOptions.shift


strength?​

optional strength: number

Defined in: src/animation/camera/FocusDim.ts:32

How far colours move toward the background, 0..1. Default: 0.7


targets?​

optional targets: Mobject[]

Defined in: src/animation/camera/FocusDim.ts:41

Mobjects to consider. Default: every mobject in the scene except fixed-in-frame (HUD) ones, read when the animation starts.