Constructor
new module:RegularPolygon(position, nbSides, radiusopt, optionsopt)
Regular polygon constructor
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
position | PositionDefinition | Center of the polygon | ||
nbSides | Number | Number of sides | ||
radius | Number | <optional> | 0 | Distance between center and outer points |
options | ComponentOptions | <optional> | Drawing options |