Constructor
new Voronoi(vertices, w, h)
- Source:
- See:
Parameters:
Name | Type | Description |
---|---|---|
vertices |
Array | array of points |
w |
Number | |
h |
Number |
Members
(readonly) vertices
- Source:
get the vertices
Methods
relax(iterations)
Perform a Lloyd relaxation
Parameters:
Name | Type | Default | Description |
---|---|---|---|
iterations |
Number |
5
|