CanvasPolygon.this

Create a polygon from coordinates. Use colors from the preset color list or a web style hex color.

class CanvasPolygon
this
(
double[] coords
,,,
int outlineWidth = 1
)

Parameters

coords double[]

The coordinates where to draw the polygon.

fillColor string

The fill color.

outlineColor string

The outline color.

outlineWidth int

The outline width.

See Also

Meta