Interface: FocusDimOptions
Defined in: src/animation/camera/FocusDim.ts:28
Extends
Properties
backgroundColor?
optionalbackgroundColor:string
Defined in: src/animation/camera/FocusDim.ts:36
Wash target. Default: the scene background colour.
duration?
optionalduration:number
Defined in: src/animation/Animation.ts:16
Duration of the animation in seconds (default: 1)
Inherited from
leafOpacity()?
optionalleafOpacity: (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
Returns
number
mute?
optionalmute: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?
optionalocclusion: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?
optionalopacity:number
Defined in: src/animation/camera/FocusDim.ts:34
Opacity multiplier for washed mobjects, 0..1. Default: 0.8
rateFunc?
optionalrateFunc:RateFunction
Defined in: src/animation/Animation.ts:18
Rate function controlling the animation's pacing (default: smooth)
Inherited from
runTime?
optionalrunTime:number
Defined in: src/animation/camera/FocusDim.ts:30
Alias of duration. Default: 0.8
shift?
optionalshift: [number,number,number]
Defined in: src/animation/Animation.ts:20
Shift direction for fade animations
Inherited from
strength?
optionalstrength:number
Defined in: src/animation/camera/FocusDim.ts:32
How far colours move toward the background, 0..1. Default: 0.7
targets?
optionaltargets: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.