U
    a¨+d  ã                   @   s0   d dl m  m  mZ d dlmZ dd„ ZdS )é    N)ÚCompositeVideoClipc                 C   s2   | j }|  tj|¡ || ¡}t| |gƒ ||¡S )z 
    Makes the clip fade in progressively at its own end, this way
    it can be looped indefinitely. ``cross`` is the duration in seconds
    of the fade-in.  )ÚdurationZfxÚtransfxZcrossfadeinZ	set_startr   Zsubclip)ZclipZcrossÚdZclip2© r   úB/tmp/pip-unpacked-wheel-0yp4gafk/moviepy/video/fx/make_loopable.pyÚmake_loopable   s    ÿ ÿr   )Z%moviepy.video.compositing.transitionsÚvideoZcompositingZtransitionsr   Z,moviepy.video.compositing.CompositeVideoClipr   r   r   r   r   r   Ú<module>   s   