Ë
    Eü´j—  ã                   óH   — d dl mZ d dlmZ d dlmZ e G d„ de«      «       Zy)é    )Ú	dataclass)ÚClip)ÚEffectc                   ó6   — e Zd ZU dZeed<   eed<   dedefd„Zy)ÚSlideInaÞ  Makes the clip arrive from one side of the screen.

    Only works when the clip is included in a CompositeVideoClip,
    and if the clip has the same size as the whole composition.

    Parameters
    ----------

    clip : moviepy.Clip.Clip
      A video clip.

    duration : float
      Time taken for the clip to be fully visible

    side : str
      Side of the screen where the clip comes from. One of
      'top', 'bottom', 'left' or 'right'.

    Examples
    --------

    .. code:: python

        from moviepy import *

        clips = [... make a list of clips]
        slided_clips = [
            CompositeVideoClip([clip.with_effects([vfx.SlideIn(1, "left")])])
            for clip in clips
        ]
        final_clip = concatenate_videoclips(slided_clips, padding=-1)

        clip = ColorClip(
            color=(255, 0, 0), duration=1, size=(300, 300)
        ).with_fps(60)
        final_clip = CompositeVideoClip([clip.with_effects([vfx.SlideIn(1, "right")])])
    ÚdurationÚsideÚclipÚreturnc                 ó�   ‡ ‡‡— |j                   \  ŠŠˆ ˆfd„ˆ ˆfd„ˆˆ fd„ˆˆ fd„dœ}|j                  |‰ j                     «      S )zApply the effect to the clip.c                 óF   •— t        d‰| ‰j                  z  dz
  z  «      dfS ©Nr   é   Úcenter©Úminr   ©ÚtÚselfÚws    €€úV/root/workspace/ytshorts/venv/lib/python3.12/site-packages/moviepy/video/fx/SlideIn.pyú<lambda>zSlideIn.apply.<locals>.<lambda>6   s&   ø€ œs 1 a¨1¨t¯}©}Ñ+<¸qÑ+@Ñ&AÓBÀHÐM€ ó    c                 óF   •— t        d‰d| ‰j                  z  z
  z  «      dfS r   ©Úmaxr   r   s    €€r   r   zSlideIn.apply.<locals>.<lambda>7   s&   ø€ ¤ A q¨A°°D·M±MÑ0AÑ,AÑ'BÓ CÀXÐN€ r   c                 óF   •— dt        d‰| ‰j                  z  dz
  z  «      fS ©Nr   r   r   r   ©r   Úhr   s    €€r   r   zSlideIn.apply.<locals>.<lambda>8   s&   ø€ ˜h¬¨A¨q°A¸¿¹Ñ4EÈÑ4IÑ/JÓ(KÐL€ r   c                 óF   •— dt        d‰d| ‰j                  z  z
  z  «      fS r   r   r   s    €€r   r   zSlideIn.apply.<locals>.<lambda>9   s&   ø€  ¬3¨q°!°q¸1¸t¿}¹}Ñ;LÑ7LÑ2MÓ+NÐ O€ r   )ÚleftÚrightÚtopÚbottom)ÚsizeÚwith_positionr	   )r   r
   Úpos_dictr    r   s   `  @@r   ÚapplyzSlideIn.apply2   s?   ú€ à�y‰y‰ˆˆ1äMÜNÜLÜOñ	
ˆð ×!Ñ! (¨4¯9©9Ñ"5Ó6Ð6r   N)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚfloatÚ__annotations__Ústrr   r)   © r   r   r   r      s'   … ñ$ðL ƒOØ
ƒIð
7˜$ð 
7 4ô 
7r   r   N)Údataclassesr   Úmoviepy.Clipr   Úmoviepy.Effectr   r   r1   r   r   ú<module>r5      s)   ðÝ !å Ý !ð ô47ˆfó 47ó ñ47r   