# 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.
# fromObject
Two.RoundedRectangle.fromObject
Returns: Two.RoundedRectangle
| Argument | Description |
|---|---|
| obj | Object notation of a Two.RoundedRectangle to create a new instance |
Create a new Two.RoundedRectangle from an object notation of a Two.RoundedRectangle.
# copy
Two.RoundedRectangle.copy
| Argument | Description |
|---|---|
| roundedRectangle | The reference Two.RoundedRectangle |
Copy the properties of one Two.RoundedRectangle onto another.
# 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.