by David Rutten (3 Submissions)
Category: Complete Applications
Compatability: VB Script
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (16 Votes)
Exploration of several pixel-based voronoi diagram algorithms. Voronoi diagrams are used to divide space (in this case 2D space) amongst a collection of points.
The application comes with a helpfile.
Inputs
A collection of points and colours
Assumes
This code uses many GDI API calls to draw stuff into device contexes. If you're interested in such things than this might be very useful to you.
Code Returns
A voronoi diagram graphic
API DeclarationsLoads of API calls. From the top of my head: MoveToEx, LineTo, Rectangle, CreateCompatibleDC, BitBlt, StretchBlt, TransparantBlt etc.
Download Voronoi diagrams (328 KB)