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

πŸ–₯Deep Field

 This program is a port and mod of a QBJS program by (correction! bplus ) dbox shared with the QB64pe community via this post .  bplus...