Skip to content

Commit

Permalink
Update docs to reflect Point change
Browse files Browse the repository at this point in the history
  • Loading branch information
MyreMylar authored Oct 5, 2024
1 parent cc12f81 commit 4286406
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/reST/ref/rect.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@
overridden if any extra attributes need to be copied.

.. versionadded:: 2.5.2
``rel_center`` added to Rect / FRect. This will return you a ``Coordinate`` of
the center relative to the topleft of the Rect. Setting a ``Coordinate`` to it will
modify the size of the rect to 2 times the ``Coordinate`` used. Below you can find a
``rel_center`` added to Rect / FRect. This will return you a ``Point`` of
the center relative to the topleft of the Rect. Setting a ``Point`` to it will
modify the size of the rect to 2 times the ``Point`` used. Below you can find a
code example of how it should work :

.. code-block:: python
Expand All @@ -109,7 +109,7 @@
> ((128, 128), (256, 256))
Beware of non integer relative centers ! Using a Rect instead of FRect will round down
the values of the returned ``Coordinate``.
the values of the returned ``Point``.


.. method:: copy
Expand Down

0 comments on commit 4286406

Please sign in to comment.