# Two.RoundedRectangle
Extends: Two.Path
# Constructor
Argument | Description |
---|---|
x | The x position of the rounded rectangle. |
y | The y position of the rounded rectangle. |
width | The width value of the rounded rectangle. |
height | The width value of the rounded rectangle. |
radius | The radius value of the rounded rectangle. |
resolution | The number of vertices used to construct the rounded rectangle. |
# Properties
Two.RoundedRectangle.Properties
A list of properties that are on every Two.RoundedRectangle.
# clone
Two.RoundedRectangle.clone
Returns: Two.RoundedRectangle
Argument | Description |
---|---|
parent | The parent group or scene to add the clone to. |
Create a new instance of Two.RoundedRectangle with the same properties of the current path.
# toObject
Two.RoundedRectangle.toObject
Returns: Object
Return a JSON compatible plain object that represents the path.
← Two.Star