A fun and interactive, aesthetically pleasing, dynamic Voronoi-Experience. Voronoi-Experiences allows users to add dynamic Voronoi sites to a WebGL canvas. Each Voronoi site moves along one of six predefined paths while the Voronoi diagram is seamlessly updated. Be sure to use the orbit mode to take a look at how we are taking advantage of cones to reduce the time complexity. That is, instead of calculating the Voronoi diagram after each timestamp in O(nlog(n)), we merely represent each Voronoi site as a black sphere superimposed on the tip of a colored cone. Since the edges of the Voronoi diagram are simply the intersection of adjacent cones, the diagram is updated as a consequence of moving the cones in O(n).
You can quickly add a variety of dynamic points by hitting a shortcut key (‘s’, ‘c’, ‘b’, ‘l’, ‘v’) prior to clicking on the canvas. The path types for each of these shortcuts is described in the controls section below. The menu GUI can be used to fine tune the parameters of each point which get organized into groups of three to reduce clutter.
Experience it yourself at www.voronoi-experiences.com (WebGL required; Sound recommended)
- left-click - add point
- right click and drag - shift camera view
- mouse wheel - zoom
- mouse wheel (held down) - pan
- space - reset camera
- s-key - change path type to star
- c-key - change path type to circle
- b-key - change path type to heart
- l-key - change path type to horizontal line
- v-key - change path type to vertical line
- p-key - change path type to static
- h-key - toggle hiding the customization gui
- u-key - undo point
- d-key - toggle party mode
- Path
- Size
- Speed
- Color
- Location
- Blacklight
- Strobe light
- Music
- Zoom in & out of the canvas
- Rotate and pan the view