Video editing with Python
remove col from ColorClip class
Martín Gaitáne22f695786c3
diff --git a/moviepy/video/VideoClip.py b/moviepy/video/VideoClip.pyindex b2de2185..9aaa4c1f 100644--- a/moviepy/video/VideoClip.py+++ b/moviepy/video/VideoClip.py@@ -1052,29 +1052,13 @@ class ColorClip(ImageClip):ismaskSet to true if the clip will be used as a mask.- col- Has been deprecated. Do not use."""- def __init__(self, size, color=None, ismask=False, duration=None, col=None):- if col is not None:- warnings.warn(- "The `ColorClip` parameter `col` has been deprecated."- " Please use `color` instead.",- DeprecationWarning,- )- if color is not None:- warnings.warn(- "The arguments `color` and `col` have both been "- "passed to `ColorClip` so `col` has been ignored.",- UserWarning,- )- else:- color = col+ def __init__(self, size, color=None, ismask=False, duration=None):w, h = sizeshape = (h, w) if np.isscalar(color) else (h, w, len(color))- ImageClip.__init__(- self, np.tile(color, w * h).reshape(shape), ismask=ismask, duration=duration+ super().__init__(+ np.tile(color, w * h).reshape(shape), ismask=ismask, duration=duration)