o
    Y+i                     @   s   		dddZ d S )N    maskc           	         s`    du r| j  du r| j| j d | j   d  fdd}| j||dS )zM Scrolls horizontally or vertically a clip, e.g. to make end
        credits N   c              	      s`   t tdtt|  }t tdtt|  }| |||  || f S )Nr   )intmaxminround)gftxyhwx_speedx_startxmaxy_speedy_startymax J/var/www/html/venv/lib/python3.10/site-packages/moviepy/video/fx/scroll.pyf   s      zscroll.<locals>.f)apply_to)r   r   fl)	clipr   r   r   r   r   r   r   r   r   r   r   scroll   s   r   )NNr   r   r   r   r   )r   r   r   r   r   <module>   s    