
    i[                     *    d dl Zd dlmZ edd       Zy)    N)requires_durationc                       j                   rdng dt        j                         fd} j                  |      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``
    r   )r   r   r   c                     j                   |z
  k\  r | |      S dj                   |z
  z  z  }| | |      z  d|z
  z  z   S )Ng      ?   )duration)gftfadingclipr   final_colors      V/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/moviepy/video/fx/fadeout.pyflzfadeout.<locals>.fl   sP    MM!Oh&a5LDMMA-.9F"Q%<1V8["888    )ismasknparrayr   )r   r   r   r   s   ``` r   fadeoutr      s;     ;;aG((;'K9 772;r   )N)numpyr   moviepy.decoratorsr   r    r   r   <module>r      s     0  r   