U
    a+d                     @   s   dddZ d S )N    maskc           	         s`    dkr| j  dk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)Zgftxyhwx_speedx_startZxmaxy_speedy_startZymax ;/tmp/pip-unpacked-wheel-0yp4gafk/moviepy/video/fx/scroll.pyf   s      zscroll.<locals>.f)apply_to)r   r   fl)	Z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         