Rounded rectangle

Informations

Author: Christophe Prugnaud
License: Freeware

Description

This script is based on this one and allows to draw a rectangle with some rounded corners. Parameters are:
x, y: top left corner of the rectangle.
w, h: width and height.
r: radius of the rounded corners.
style: same as Rect(): F, D (default), FD or DF.
angle: numbers of the corners to be rounded: 1, 2, 3, 4 or any combination (1=top left, 2=top right, 3=bottom right, 4=bottom left).