# 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

A list of properties that are on every Two.RoundedRectangle.

# width

The width of the rounded rectangle.

# height

The height of the rounded rectangle.

# radius

The size of the radius of the rounded rectangle.

# 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

Returns: Object

Return a JSON compatible plain object that represents the path.