moviepy.video.fx.FadeOut#
- class moviepy.video.fx.FadeOut.FadeOut(duration: float, final_color: list | None = None)[source]#
Makes the clip progressively fade to some color (black by default), over
duration
seconds at the end of the clip. Can be used for masks too, where the final color must be a number between 0 and 1.For cross-fading (progressive appearance or disappearance of a clip over another clip), see
CrossFadeOut
- copy()#
Return a shallow copy of an Effect.
You must always copy an
Effect
before applying, because some of them will modify their own attributes when applied. For example, setting a previously unset property by using target clip property.If we was to use the original effect, calling the same effect multiple times could lead to different properties, and different results for equivalent clips.
By using copy, we ensure we can use the same effect object multiple times while maintaining the same behavior/result.
In a way, copy makes the effect himself being kind of idempotent.