From 7a75e09fe1f192b112add00de409063e2516e436 Mon Sep 17 00:00:00 2001 From: Tommy C Date: Sat, 5 Sep 2020 20:03:06 +0100 Subject: [PATCH 1/3] Add `ImageDraw.regular_polygon` to release notes [skip ci] --- docs/releasenotes/8.0.0.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/releasenotes/8.0.0.rst b/docs/releasenotes/8.0.0.rst index 991699727..7e42913fd 100644 --- a/docs/releasenotes/8.0.0.rst +++ b/docs/releasenotes/8.0.0.rst @@ -78,6 +78,14 @@ high ends. Now, it can also be a tuple ``(low, high)``. +ImageDraw.regular_polygon +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +A new method ``regular_polygon``, draws a regular polygon of ``n_sides``, inscribed in a ``bounding_circle``. + +For example ``ImageDraw.regular_polygon(((100, 100), 50), 5)`` +draws a pentagon centered at the point ``(100, 100)`` with a polygon radius of ``50``. + Security ======== From efb0055645e3f1309f486e553eca5d6d8091231c Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Sat, 5 Sep 2020 22:44:56 +0300 Subject: [PATCH 2/3] Same length header underline --- docs/releasenotes/8.0.0.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/releasenotes/8.0.0.rst b/docs/releasenotes/8.0.0.rst index 7e42913fd..7a0e39ba1 100644 --- a/docs/releasenotes/8.0.0.rst +++ b/docs/releasenotes/8.0.0.rst @@ -79,7 +79,7 @@ high ends. Now, it can also be a tuple ``(low, high)``. ImageDraw.regular_polygon -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +^^^^^^^^^^^^^^^^^^^^^^^^^ A new method ``regular_polygon``, draws a regular polygon of ``n_sides``, inscribed in a ``bounding_circle``. From d49f90444cbed0d65604d458ae487d927a2a3c56 Mon Sep 17 00:00:00 2001 From: Tommy C Date: Sun, 6 Sep 2020 07:04:57 +0100 Subject: [PATCH 3/3] Add documentation link to release notes [skip ci] --- docs/releasenotes/8.0.0.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/releasenotes/8.0.0.rst b/docs/releasenotes/8.0.0.rst index 7a0e39ba1..79fdb7340 100644 --- a/docs/releasenotes/8.0.0.rst +++ b/docs/releasenotes/8.0.0.rst @@ -81,9 +81,9 @@ Now, it can also be a tuple ``(low, high)``. ImageDraw.regular_polygon ^^^^^^^^^^^^^^^^^^^^^^^^^ -A new method ``regular_polygon``, draws a regular polygon of ``n_sides``, inscribed in a ``bounding_circle``. +A new method :py:meth:`.ImageDraw.regular_polygon`, draws a regular polygon of ``n_sides``, inscribed in a ``bounding_circle``. -For example ``ImageDraw.regular_polygon(((100, 100), 50), 5)`` +For example ``draw.regular_polygon(((100, 100), 50), 5)`` draws a pentagon centered at the point ``(100, 100)`` with a polygon radius of ``50``. Security