Video editing with Python
Delete redundant on_color.py (#1456)
Tom Burrows4d59f795dc59
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 07a3bb6d..3ea3abdb 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -40,6 +40,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0### Removed <!-- for now removed features -->- `VideoFileClip.coreader` and `AudioFileClip.coreader` methods removed. Use `VideoFileClip.copy` and `AudioFileClip.copy` instead [\#1442](https://github.com/Zulko/moviepy/pull/1442)- `audio.fx.audio_loop` removed. Use `video.fx.loop` instead for all types of clip [\#1451](https://github.com/Zulko/moviepy/pull/1451)+- `video.compositing.on_color` removed. Use `VideoClip.on_color` instead [\#1456](https://github.com/Zulko/moviepy/pull/1456)### Fixed <!-- for any bug fixes -->- Fixed BitmapClip with fps != 1 not returning the correct frames or crashing [\#1333](https://github.com/Zulko/moviepy/pull/1333)diff --git a/moviepy/video/VideoClip.py b/moviepy/video/VideoClip.pyindex 3ad7a8c8..a8c7c8a7 100644--- a/moviepy/video/VideoClip.py+++ b/moviepy/video/VideoClip.py@@ -751,7 +751,6 @@ class VideoClip(Clip):size = self.sizeif pos is None:pos = "center"- colorclip = ColorClip(size, color=color)if col_opacity is not None:colorclip = ColorClip(diff --git a/moviepy/video/compositing/on_color.py b/moviepy/video/compositing/on_color.pydeleted file mode 100644index dec9b432..00000000--- a/moviepy/video/compositing/on_color.py+++ /dev/null@@ -1,27 +0,0 @@-from moviepy.video.compositing.CompositeVideoClip import CompositeVideoClip-from moviepy.video.VideoClip import ColorClip---def on_color(clip, size=None, color=(0, 0, 0), pos=None, col_opacity=None):- """- Returns a clip made of the current clip overlaid on a color- clip of a possibly bigger size. Can serve to flatten transparent- clips (ideal for previewing clips with masks).-- :param size: size of the final clip. By default it will be the- size of the current clip.- :param bg_color: the background color of the final clip- :param pos: the position of the clip in the final clip.- :param col_opacity: should the added zones be transparent ?- """- if size is None:- size = clip.size- if pos is None:- pos = "center"- colorclip = ColorClip(size, color=color)- if col_opacity:- colorclip = colorclip.with_mask().with_opacity(col_opacity)-- return CompositeVideoClip(- [colorclip, clip.with_position(pos)], transparent=(col_opacity is not None)- )