
    W|hM                     P    S SK Jr  S SKrS SKJr  S SKJr  \ " S S\5      5       rg)    )	dataclassN)Clip)Effectc                   D    \ rS rSr% Sr\\S'   Sr\\S'   S\	S\	4S jr
S	rg)
FadeIn	   aA  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 ``CrossFadeIn``
durationNinitial_colorclipreturnc                    ^  T R                   c  UR                  (       a  SO/ SQT l         [        R                  " T R                   5      T l         U 4S jnUR	                  U5      $ )zApply the effect to the clip.r   )r   r   r   c                    > UTR                   :  a  U " U5      $ SU-  TR                   -  nX " U5      -  SU-
  TR                  -  -   $ )Ng      ?   )r	   r
   )	get_frametfadingselfs      Q/home/james-whalen/.local/lib/python3.13/site-packages/moviepy/video/fx/FadeIn.pyfilterFadeIn.apply.<locals>.filter   sN    DMM! |#q4==0	!,F
d>P>P/PPP    )r
   is_masknparray	transform)r   r   r   s   `  r   applyFadeIn.apply   sM    %&*ll	DXXd&8&89	Q ~~f%%r   )r
   )__name__
__module____qualname____firstlineno____doc__float__annotations__r
   listr   r   __static_attributes__ r   r   r   r   	   s+     OM4&$ &4 &r   r   )	dataclassesr   numpyr   moviepy.Clipr   moviepy.Effectr   r   r'   r   r   <module>r,      s,    !   ! &V & &r   