PLAYGROUND (experimental)

voronoi

Cells of Voronoi - returns the cells around each point, containing all locations closest to that point. Return a list of list of polygons
voronoi(
    points, 
    [triangles=false], 
    [bbox=false]
) -> list of list

Cells of Voronoi - returns the cells around each point, containing all locations closest to that point. Return a list of list of polygons

Syntaxe

var cells = voronoi(points=[x1,y1,x2,y2,x3,y3]);

Arguments

NameTypeRequiredDefaultDescription
pointslistyes-list of points [x1,y1,x2,y2...]
trianglesbool-falselist of triangles (flat), auto delaunay if omitted
bboxbool-falsebounding box [x1,y1,x2,y2], auto if omitted