Source code for moviepy.video.fx.multiply_color
import numpy as np
[docs]def multiply_color(clip, factor):
"""
Multiplies the clip's colors by the given factor, can be used
to decrease or increase the clip's brightness (is that the
right word ?)
"""
return clip.image_transform(
lambda frame: np.minimum(255, (factor * frame)).astype("uint8")
)