Viewing File: /home/ubuntu/combine_ai/combine/lib/python3.10/site-packages/moviepy/video/fx/colorx.py

import numpy as np


def colorx(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
        reight word ?)
    """
    return clip.fl_image( lambda pic: np.minimum(255,(factor*pic)).
                                                        astype('uint8'))
Back to Directory File Manager