v0.1.4
What's New
- Rounded rectangles: Add
corner_radiusproperty to rectangles for rounded corners- Radius is automatically clamped to half the smallest dimension
- Uses cubic Bézier curves for smooth quarter-circle corners
Usage
{
"type": "rect",
"x": 72, "y": 72, "w": 200, "h": 100,
"fill_color": (255, 200, 100, 255),
"corner_radius": 15 # optional, defaults to 0
}Installation
pip install rupdf==0.1.4