Skip to content

Commit

Permalink
Fix wrong code snippet
Browse files Browse the repository at this point in the history
Before this commit, the doc talks about position, but shows timing code
  • Loading branch information
junhe committed Nov 29, 2024
1 parent 9c6b8ae commit a935e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/user_guide/compositing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Frequently, you will want a smaller clip to appear on top of a larger one, and d
You can do so by using the :py:meth:`~moviepy.video.VideoClip.VideoClip.with_position` method. The position is always defined from the top left corner, but you can define it
in many ways :

.. literalinclude:: /_static/code/user_guide/compositing/with_start.py
.. literalinclude:: /_static/code/user_guide/compositing/with_position.py
:language: python

When indicating the position keep in mind that the ``y`` coordinate has its zero at the top of the picture:
Expand Down

0 comments on commit a935e48

Please sign in to comment.