# Two.Star
Extends: Two.Path
# Constructor
Argument | Description |
---|---|
x | The x position of the star. |
y | The y position of the star. |
innerRadius | The inner radius value of the star. |
outerRadius | The outer radius value of the star. |
sides | The number of sides used to construct the star. |
# clone
Two.Star.clone
Returns: Two.Star
Argument | Description |
---|---|
parent | The parent group or scene to add the clone to. |
Create a new instance of Two.Star with the same properties of the current path.
# toObject
Two.Star.toObject
Returns: Object
Return a JSON compatible plain object that represents the path.