Skip to content

v0.1.4

Choose a tag to compare

@lhopkins lhopkins released this 22 Dec 22:34
· 17 commits to main since this release

What's New

  • Rounded rectangles: Add corner_radius property 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