-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
Description
What's your feature request?
To add an optional bool tuple parameter (corners=(True, True, True, True)), or 4 optional bool parameters (top_left=True, top_right=True, ...) describing which corners of a rectangle should be rounded for ImageDraw.rounded_rectangle and possibly similar functions.
What are your OS, Python and Pillow versions?
- OS: Windows 10
- Python: 3.10.10
- Pillow: latest
Example of feature request
draw.rounded_rectangle((x0, y0, x1, y1), radius=4, fill = white, corners=(True, False, True, False)) # TL TR BL BR
draw.rounded_rectangle((x0, y0, x1, y1), radius=4, fill=white, top_right=False, bottom_right=False)Reactions are currently unavailable