Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1529

Figures - experimenting with polygons

$
0
0
Figures is an experiment in generating and animating simple polygons. Instead of using horizontal and vertical coordinates for each element, the program uses the distances (radii?) as measured from the polygon's center. Because these distances are evenly distributed over a full circle, there's no need to define an angle. To, for example, define the following figures just specify:

3 equal "distances" for a triangle, 4 for a square, and 8 for an octagon.

Variable distances inside one polygon (think stars/sprockets) are allowed. There's also a rudimentary function which allows you to append one polygon to another polygon.

"Figures" is an old project which I decided to clean and upload here. It is, however, slow, has some stability issues, and, the terminology used in the code could use cleaning.
Attached Files

Viewing all articles
Browse latest Browse all 1529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>