o
    Y+i[  ã                   @   s&   d dl Zd dlmZ eddd„ƒZdS )é    N)Úrequires_durationc                    s>   ˆdu rˆ j r	dng d¢‰t ˆ¡‰‡ ‡‡fdd„}ˆ  |¡S )aW  
    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 ``composition.crossfade``
    Nr   )r   r   r   c                    s@   ˆ j | ˆkr| |ƒS dˆ j |  ˆ }|| |ƒ d| ˆ  S )Ng      ð?é   )Úduration)ÚgfÚtÚfading©Úclipr   Úfinal_color© úK/var/www/html/venv/lib/python3.10/site-packages/moviepy/video/fx/fadeout.pyÚfl   s   zfadeout.<locals>.fl)ÚismaskÚnpÚarrayr   )r	   r   r
   r   r   r   r   Úfadeout   s
   


r   )N)Únumpyr   Úmoviepy.decoratorsr   r   r   r   r   r   Ú<module>   s    