File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 9494 overridden if any extra attributes need to be copied.
9595
9696 .. versionadded :: 2.5.2
97- ``rel_center `` added to Rect / FRect. This will return you a ``Coordinate `` of
98- the center relative to the topleft of the Rect. Setting a ``Coordinate `` to it will
99- modify the size of the rect to 2 times the ``Coordinate `` used. Below you can find a
97+ ``rel_center `` added to Rect / FRect. This will return you a ``Point `` of
98+ the center relative to the topleft of the Rect. Setting a ``Point `` to it will
99+ modify the size of the rect to 2 times the ``Point `` used. Below you can find a
100100 code example of how it should work :
101101
102102 .. code-block :: python
109109 > ((128 , 128 ), (256 , 256 ))
110110
111111 Beware of non integer relative centers ! Using a Rect instead of FRect will round down
112- the values of the returned ``Coordinate ``.
112+ the values of the returned ``Point ``.
113113
114114
115115 .. method :: copy
You can’t perform that action at this time.
0 commit comments