o
    Y+i
  ã                   @   s   d dl Zddd„ZdS )é    Nc                    s<   ˆdu r| j r	dng d¢‰t ˆ¡‰‡ ‡fdd„}|  |¡S )ac  
    Makes the clip progressively appear from some color (black by default),
    over ``duration`` seconds at the beginning of the clip. Can be used for
    masks too, where the initial 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                    s4   |ˆ kr| |ƒS d| ˆ  }|| |ƒ d| ˆ  S )Ng      ð?é   © )ÚgfÚtÚfading©ÚdurationÚinitial_colorr   úJ/var/www/html/venv/lib/python3.10/site-packages/moviepy/video/fx/fadein.pyÚfl   s   zfadein.<locals>.fl)ÚismaskÚnpÚarrayr   )Úclipr   r	   r   r   r   r
   Úfadein   s
   	

r   )N)Únumpyr   r   r   r   r   r
   Ú<module>   s    