
    W|h                     T    S SK Jr  S SKJr  S SKJr  S SKJr  \ " S S\5      5       rg)    )	dataclass)Clip)Effect)FadeOutc                   6    \ rS rSr% Sr\\S'   S\S\4S jrSr	g)	CrossFadeOut   zMakes the clip disappear progressively, over ``duration`` seconds.
Only works when the clip is included in a CompositeVideoClip.
durationclipreturnc                    UR                   c  [        S5      eUR                  c  UR                  5       nUR                   UR                  l         UR                  R	                  [        U R                   5      /5      Ul        U$ )zApply the effect to the clip.zAttribute 'duration' not set)r
   
ValueErrormask	with_maskwith_effectsr   )selfr   s     W/home/james-whalen/.local/lib/python3.13/site-packages/moviepy/video/fx/CrossFadeOut.pyapplyCrossFadeOut.apply   se    == ;<<99>>#D!]]		II**GDMM,B+CD	     N)
__name__
__module____qualname____firstlineno____doc__float__annotations__r   r   __static_attributes__r   r   r   r   r      s!     O$ 4 r   r   N)	dataclassesr   moviepy.Clipr   moviepy.Effectr   moviepy.video.fx.FadeOutr   r   r   r   r   <module>r$      s,    !  ! , 6  r   