
    W|h                     <    S SK Jr  S SKJr  \ " S S\5      5       rg)    )	dataclass)Effectc                   4    \ rS rSr% Sr\\S'   \\S'   S rSrg)Blink   z
Makes the clip blink. At each blink it will be displayed ``duration_on``
seconds and disappear ``duration_off`` seconds. Will only work in
composite clips.
duration_onduration_offc                    ^ ^ UR                   c  UR                  5       nT R                  T R                  -   mUR                   R	                  UU 4S j5      Ul         U$ )zApply the effect to the clip.c                 :   > U " U5      UT-  TR                   :  -  $ )N)r   )	get_frametdurationselfs     P/home/james-whalen/.local/lib/python3.13/site-packages/moviepy/video/fx/Blink.py<lambda>Blink.apply.<locals>.<lambda>   s    1!h,$BRBR1R!S    )mask	with_maskr   r	   	transform)r   clipr   s   ` @r   applyBlink.apply   sO    99>>#D##d&7&77II''S
	 r    N)	__name__
__module____qualname____firstlineno____doc__float__annotations__r   __static_attributes__r   r   r   r   r      s     
r   r   N)dataclassesr   moviepy.Effectr   r   r   r   r   <module>r%      s&    ! ! F  r   