ai-content-maker/.venv/Lib/site-packages/moviepy/video/fx/mirror_x.py

5 lines
177 B
Python
Raw Permalink Normal View History

2024-05-11 23:00:43 +03:00
def mirror_x(clip, apply_to= "mask"):
""" flips the clip horizontally (and its mask too, by default) """
return clip.fl_image(lambda f: f[:,::-1], apply_to = apply_to)