From 8c134ad8381da8f09a7c04efc97061fd9687503f Mon Sep 17 00:00:00 2001 From: Hugo Date: Sat, 29 Sep 2018 16:35:55 +0300 Subject: [PATCH 1/5] Put ImageOps additions next to each other --- docs/releasenotes/5.3.0.rst | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/releasenotes/5.3.0.rst b/docs/releasenotes/5.3.0.rst index 5dade4228..286b2f05e 100644 --- a/docs/releasenotes/5.3.0.rst +++ b/docs/releasenotes/5.3.0.rst @@ -4,6 +4,15 @@ API Additions ============= +Curved joints for line sequences +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +``ImageDraw.Draw.line`` draws a line, or lines, between points. Previously, +when multiple points are given, for a larger ``width``, the joints between +these lines looked unsightly. There is now an additional optional argument, +``joint``, defaulting to ``None``. When it is set to ``curved``, the joints +between the lines will become rounded. + ImageOps.colorize ^^^^^^^^^^^^^^^^^ @@ -13,18 +22,9 @@ Now it supports three-color mapping with the optional ``mid`` parameter, and the positions for all three color arguments can each be optionally specified (``blackpoint``, ``whitepoint`` and ``midpoint``). For example, with all optional arguments:: - ImageOps.colorize(im, black=(32, 37, 79), white='white', mid=(59, 101, 175), + ImageOps.colorize(im, black=(32, 37, 79), white='white', mid=(59, 101, 175), blackpoint=15, whitepoint=240, midpoint=100) -Curved joints for line sequences -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -``ImageDraw.Draw.line`` draws a line, or lines, between points. Previously, -when multiple points are given, for a larger ``width``, the joints between -these lines looked unsightly. There is now an additional optional argument, -``joint``, defaulting to ``None``. When it is set to ``curved``, the joints -between the lines will become rounded. - ImageOps.pad ^^^^^^^^^^^^ From 08274ae5aaf9784ae0564719f81e77bbef1d044d Mon Sep 17 00:00:00 2001 From: Hugo Date: Sat, 29 Sep 2018 16:40:11 +0300 Subject: [PATCH 2/5] Release notes: Add line width parameter to rectangle and ellipse-based shapes --- docs/releasenotes/5.3.0.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/releasenotes/5.3.0.rst b/docs/releasenotes/5.3.0.rst index 286b2f05e..354d77e7f 100644 --- a/docs/releasenotes/5.3.0.rst +++ b/docs/releasenotes/5.3.0.rst @@ -4,6 +4,12 @@ API Additions ============= +Add line width parameter to rectangle and ellipse-based shapes +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +A line ``width`` parameter has been added to ``ImageDraw.Draw.arc``, +``chord``, ``ellipse``, ``pieslice`` and ``rectangle``. + Curved joints for line sequences ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ From f4c3002b979695311a06ce9964abb40ebc921d5f Mon Sep 17 00:00:00 2001 From: Hugo Date: Sat, 29 Sep 2018 16:41:19 +0300 Subject: [PATCH 3/5] Fix unexpected indentation --- docs/releasenotes/5.3.0.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/releasenotes/5.3.0.rst b/docs/releasenotes/5.3.0.rst index 354d77e7f..0bdfe2995 100644 --- a/docs/releasenotes/5.3.0.rst +++ b/docs/releasenotes/5.3.0.rst @@ -28,6 +28,7 @@ Now it supports three-color mapping with the optional ``mid`` parameter, and the positions for all three color arguments can each be optionally specified (``blackpoint``, ``whitepoint`` and ``midpoint``). For example, with all optional arguments:: + ImageOps.colorize(im, black=(32, 37, 79), white='white', mid=(59, 101, 175), blackpoint=15, whitepoint=240, midpoint=100) From 2d3941095727f6949a9bb9cda35e2cb81ef9f941 Mon Sep 17 00:00:00 2001 From: Hugo Date: Sat, 29 Sep 2018 16:52:07 +0300 Subject: [PATCH 4/5] Note parameter is optional --- docs/releasenotes/5.3.0.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/releasenotes/5.3.0.rst b/docs/releasenotes/5.3.0.rst index 0bdfe2995..0e484e7bc 100644 --- a/docs/releasenotes/5.3.0.rst +++ b/docs/releasenotes/5.3.0.rst @@ -7,7 +7,7 @@ API Additions Add line width parameter to rectangle and ellipse-based shapes ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -A line ``width`` parameter has been added to ``ImageDraw.Draw.arc``, +An optional line ``width`` parameter has been added to ``ImageDraw.Draw.arc``, ``chord``, ``ellipse``, ``pieslice`` and ``rectangle``. Curved joints for line sequences @@ -28,7 +28,6 @@ Now it supports three-color mapping with the optional ``mid`` parameter, and the positions for all three color arguments can each be optionally specified (``blackpoint``, ``whitepoint`` and ``midpoint``). For example, with all optional arguments:: - ImageOps.colorize(im, black=(32, 37, 79), white='white', mid=(59, 101, 175), blackpoint=15, whitepoint=240, midpoint=100) From 518b8c40afef4d896b9d3f2f5bb8f270b9d25dd9 Mon Sep 17 00:00:00 2001 From: Andrew Murray <3112309+radarhere@users.noreply.github.com> Date: Sun, 30 Sep 2018 00:19:13 +1000 Subject: [PATCH 5/5] Changed heading to past tense [ci skip] --- docs/releasenotes/5.3.0.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/releasenotes/5.3.0.rst b/docs/releasenotes/5.3.0.rst index 0e484e7bc..10d6ecbd2 100644 --- a/docs/releasenotes/5.3.0.rst +++ b/docs/releasenotes/5.3.0.rst @@ -4,8 +4,8 @@ API Additions ============= -Add line width parameter to rectangle and ellipse-based shapes -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +Added line width parameter to rectangle and ellipse-based shapes +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ An optional line ``width`` parameter has been added to ``ImageDraw.Draw.arc``, ``chord``, ``ellipse``, ``pieslice`` and ``rectangle``.