Monday, May 6, 2024

🖥 Animated Recursion Demo

A little program to demonstrate a recursive subroutine.

It also demonstrated the use of DRAW with the TA (angle) command to help draw the outline "dotted" circles by positioning the pen to draw those points (using CIRCLE to create some thick points, because PSET pixels aren't quite visible enough for these aging eyeballs.

To make things interesting, the drawing is animated and uses a new random colour for each recursion (in the hopes "seeing" what the code is doing.

The program runs in an endless loop, retracing the previous drawing with new random colours..




No comments:

Post a Comment

🖥 "Spirographed" ellipses to create a colorful (32-bit, gradiant) spherical shape

This sample program shows how to use DRAW to create ellipses (I like to call this a "spirographing" approach. The program generate...