This PR also fixed the default style value of FPDF.bezier(),
and introduces a minor optimization in drawing.rgb8(),
ro produce DeviceGray instances when possible.
Checklist:
[x] The GitHub pipeline is OK (green), meaning that both pylint (static code analyzer) and black (code formatter) are happy with the changes of this PR.
[x] A unit test is covering the code added / modified by this PR
[x] This PR is ready to be merged
[x] In case of a new feature, docstrings have been added, with also some documentation in the docs/ folder
[NA] A mention of the change is present in CHANGELOG.md
By submitting this pull request, I confirm that my contribution is made under the terms of the GNU LGPL 3.0 license.
Result of this PR post-merge: https://py-pdf.github.io/fpdf2/Shapes.html#bezier-curve
This PR also fixed the default
style
value ofFPDF.bezier()
, and introduces a minor optimization indrawing.rgb8()
, ro produceDeviceGray
instances when possible.Checklist:
[x] The GitHub pipeline is OK (green), meaning that both
pylint
(static code analyzer) andblack
(code formatter) are happy with the changes of this PR.[x] A unit test is covering the code added / modified by this PR
[x] This PR is ready to be merged
[x] In case of a new feature, docstrings have been added, with also some documentation in the
docs/
folder[NA] A mention of the change is present in
CHANGELOG.md
By submitting this pull request, I confirm that my contribution is made under the terms of the GNU LGPL 3.0 license.