Module: shape-points/roundedRect

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
Name Type Attributes Description
topLeft number <optional>
topRight number <optional>
bottomLeft number <optional>
bottomRight number <optional>
pointsInArc number <optional>
5
Source:
Returns:

[x1, y1, x2, y2, ... xn, yn]

Type
array