Source code for moviepy.video.fx.mirror_x

[docs]def mirror_x(clip, apply_to="mask"): """Flips the clip horizontally (and its mask too, by default).""" return clip.image_transform(lambda img: img[:, ::-1], apply_to=apply_to)