
    i
                         d dl ZddZy)    Nc                     | j                   rdng dt        j                        fd}| j                  |      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``
    r   )r   r   r   c                 V    |k\  r | |      S d|z  z  }| | |      z  d|z
  z  z   S )Ng      ?    )gftfadingdurationinitial_colors      U/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/moviepy/video/fx/fadein.pyflzfadein.<locals>.fl   s<    h;a5L!eHnF"Q%<1V8]":::    )ismasknparrayr   )clipr
   r   r   s    `` r   fadeinr      s;     ![[gHH]+M; 772;r   )N)numpyr   r   r   r   r   <module>r      s    r   