U
    a¨+d
  ã                   @   s   d dl Zddd„ZdS )é    Nc                    s>   ˆdkr| j rdndddg‰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   c                    s8   |ˆ kr| |ƒS d| ˆ  }|| |ƒ d| ˆ  S d S )Ng      ð?é   © )ZgfÚtZfading©ÚdurationÚinitial_colorr   ú;/tmp/pip-unpacked-wheel-0yp4gafk/moviepy/video/fx/fadein.pyÚfl   s    zfadein.<locals>.fl)ZismaskÚnpÚarrayr	   )Zclipr   r   r	   r   r   r   Úfadein   s
    	
r   )N)Znumpyr
   r   r   r   r   r   Ú<module>   s   