§
    7?Äj˜  ã                   ó.   — d dl mZ  G d„ de¦  «        ZdS )é    )ÚEffectc                   ó.   — e Zd ZdZ	 	 	 	 	 	 	 dd„Zd„ ZdS )ÚScrolla³  Effect that scrolls horizontally or vertically a clip, e.g. to make end credits

    Parameters
    ----------
    w, h
      The width and height of the final clip. Default to clip.w and clip.h

    x_speed, y_speed
      The speed of the scroll in the x and y directions.

    x_start, y_start
      The starting position of the scroll in the x and y directions.


    apply_to
      Whether to apply the effect to the mask too.
    Nr   Úmaskc                 óh   — || _         || _        || _        || _        || _        || _        || _        d S )N)ÚwÚhÚx_speedÚy_speedÚx_startÚy_startÚapply_to)Úselfr   r	   r
   r   r   r   r   s           úHC:\Projects\Historical\venv\Lib\site-packages\moviepy/video/fx/Scroll.pyÚ__init__zScroll.__init__   s9   € ð ˆŒØˆŒØˆŒØˆŒØˆŒØˆŒØ ˆŒˆˆó    c                 óÂ   ‡ ‡‡— ‰ j         €|j         ‰ _         ‰ j        €|j        ‰ _        ‰ j        dz
  Š‰ j         dz
  Šˆ ˆˆfd„}|                     |‰ j        ¬¦  «        S )zApply the effect to the clip.Né   c                 ór  •— t          t          dt          ‰‰j        t	          ‰j        |z  ¦  «        z   ¦  «        ¦  «        ¦  «        }t          t          dt          ‰‰j        t	          ‰j        |z  ¦  «        z   ¦  «        ¦  «        ¦  «        } | |¦  «        ||‰j        z   …||‰j	        z   …f         S )Nr   )
ÚintÚmaxÚminr   Úroundr
   r   r   r	   r   )Ú	get_frameÚtÚxÚyr   Úx_maxÚy_maxs       €€€r   ÚfilterzScroll.apply.<locals>.filter4   s�   ø€ Ý•C˜�3˜u d¤lµU¸4¼<È!Ñ;KÑ5LÔ5LÑ&LÑMÔMÑNÔNÑOÔOˆAÝ•C˜�3˜u d¤lµU¸4¼<È!Ñ;KÑ5LÔ5LÑ&LÑMÔMÑNÔNÑOÔOˆAØ�9˜Q‘<”<  A¨¬¡J °°A¸¼±J°Ð >Ô?Ð?r   )r   )r	   r   Ú	transformr   )r   Úclipr    r   r   s   `  @@r   ÚapplyzScroll.apply)   s   øøø€ àŒ6ˆ>Ø”VˆDŒFàŒ6ˆ>Ø”VˆDŒFà”˜‘
ˆØ”˜‘
ˆð	@ð 	@ð 	@ð 	@ð 	@ð 	@ð 	@ð
 �~Š~˜f¨t¬}ˆ~Ñ=Ô=Ð=r   )NNr   r   r   r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r#   © r   r   r   r      sX   € € € € € ðð ð( Ø
ØØØØØð!ð !ð !ð !ð$>ð >ð >ð >ð >r   r   N)Úmoviepy.Effectr   r   r(   r   r   ú<module>r*      sK   ðØ !Ð !Ð !Ð !Ð !Ð !ð5>ð 5>ð 5>ð 5>ð 5>ˆVñ 5>ô 5>ð 5>ð 5>ð 5>r   