Tuesday, January 7, 2025

🖥 DRAW to generate the points for regular polygons

Drawing regular polygons is pretty easy when using DRAW to generate the points of the polygon, using specified coordinates for the center of the polygon and using a specified number of points for the polygon.

This program also demonstrates simple animation by rotating the polygon around the center, and loops endlessly (in increments of 1) from 3-point to 15-point polygons, increasing the number of points every loop of 360 degrees.



No comments:

Post a Comment

📚 TIP: Exporting a BAM Program for Embedding as an App in Web Pages

Say we have written an analog clock program, and we want to show that clock on a Web Page. Here is a QB64 program by b+ ported to BAM: Run t...