py-pdf / fpdf2

Simple PDF generation for Python
https://py-pdf.github.io/fpdf2/
GNU Lesser General Public License v3.0
1.13k stars 253 forks source link

Doc: adding examples of bezier curves chaining #1210

Closed Lucas-C closed 5 months ago

Lucas-C commented 5 months ago

Result of this PR post-merge: https://py-pdf.github.io/fpdf2/Shapes.html#bezier-curve

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:

By submitting this pull request, I confirm that my contribution is made under the terms of the GNU LGPL 3.0 license.