实现

构造函数

属性

centerColor: Color = null

The color of the center vertex.

中心顶点的颜色。

distances: number[] = []

An array of distances from the center to each vertex, expressed as a fraction of the radius. If null, all vertices are at the radius distance.

从中心到每个顶点的距离数组,以半径的分数表示。如果为null,则所有顶点都在半径距离处。

fillColor: Color = null

The fill color of the polygon.

多边形的填充颜色。

lineColor: Color = null

The color of the outline line.

轮廓线的颜色。

lineWidth: number = 0

The width of the outline line.

轮廓线的宽度。

rotation: number = 0

The rotation angle of the polygon in degrees.

多边形的旋转角度,单位为度。

sides: number = 6

The number of sides of the regular polygon.

正多边形的边数。

方法