Instructions
- Enable WebGL in the browser.
- Click in black box to add another point to the set of input points.
- Click and keep mouse down to temporarily add a point. Drag your mouse around to watch how the new input point influences the Voronoi diagram. On release, the new point will be added.
- To make a query point, such that the Voronoi diagram will display the stolen area from the nearest neighbors, check the NNI query point box before adding the point.
- If you would like to save a diagram for reuse later, copy the data from the data field and simply reload it in later.
Settings
Width:
Height:
Cone Radius:
Triangles/cone:
NNI Query point?
Input data
Motion
Speed (Pixels/sec):
User defined:
Speed function definition using Javascript in terms of time t
(optional array, length 4, of random variables rand):
Examples:
- Sinusoidal: 2 * Math.cos(t)
- Random linear speed: rand[0]* 20
- Random quadratic speed: 2 * rand[1] * t + rand[0] * 10
- Possibly cubic: Math.round(rand[1]) * Math.pow(t,2) + rand[0] * 10