calculate points for a rounded rectangle with one corner radius, or 4 separate corner radii
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
x |
number | (center) |
||||||||||||||||||||||
y |
number | |||||||||||||||||||||||
width |
number | |||||||||||||||||||||||
height |
number | |||||||||||||||||||||||
radius |
number | object |
Properties
|
||||||||||||||||||||||
pointsInArc |
number |
<optional> |
5 |
- Source:
Returns:
[x1, y1, x2, y2, ... xn, yn]
- Type
- array