Saturday, June 8, 2024

🖥 "Structured" World Map

 The recent 🖥 World Map program stands as a great example of a neat program created in an "unstructured" programming paradigm.

This alternative version of the program is a port of Tom Lake's QB64 program, a really great conversion of the "unstructured" program to a "structured" programming paradigm.

It is very cool to compare the various unstructured versions of World Map to Tom Lake's program (his QB64 version and this BAM port.)



Friday, June 7, 2024

🖥 Vampire Einstein

This BAM program is a port of a QBASIC program by Peter McGavin.

Peter McGavin's QBASIC program is an awesome port of an excellent BBC BASIC program by Richard Russell.




Thursday, June 6, 2024

🖥 World Map

From Tektronix BASIC program, to C64 Simon's BASIC program, to QB64 program, to BAM program.

  • BAM program by Charlie Veniot
  • QB64 program by Luis Alberto Migliorero
  • C64 program by Alvaro Alonso G.
  • Tektronix program (author unknown) hosted on Monty Mcgraw's GitHub site
Cool.

This BAM port and mod:
  • creates a custom screen size so that the map fills the browser window on a display with resolution of about 1371 x 771
  • animates the drawing of the map in an endless loop
  • once a map is drawn in some random colour, the program pauses for 2.5 seconds before the map gets retraced with a new random colour
  • Run the program
  • View the source code



Sunday, June 2, 2024

🖥 JW Simple Animation 1

This program is a port and mod of Jeerayut Wetweerapong's "simple animation #1" shared on Facebook with the "BASIC Programming Language" group (link to post).

As per my almost always usual self, I've setup the program in an infinite loop of creating new images, I've added some extra randomness to increase the variety of images drawn, and I've setup a 2.5 second delay between the end of one drawing and the start of the next animated drawing.



Wednesday, May 29, 2024

🖥 Twelve Trigeod Wheel

This BAM program inspired by Richard Russell's BBC BASIC program shared on Facebook with the BASIC Programming Language group (link.)

I wanted to recreate Richard Russell's image using DRAW statements as part of my long process of testing enhancements to DRAW that are still at the development level (I..e. not ready for a new BAM release.)




Sunday, May 26, 2024

🖥 Twisted Squircle

I wrote this program to test a change to the TA command in BAM's DRAW statement:

When I originally added the TA command in BAM, I had set it up so that the drawing angle was reset to zero before every DRAW command.  Every TA angle was local to the DRAW statement using TA.

That did not match GW-BASIC's TA behaviour.

In GW-BASIC, a new value for TA is retained (globally), such that when an angle is specified with a TA command in a draw statement, that angle will apply to every subsequent DRAW statement until some later DRAW statement specified a new angle via TA.

In the current development version of BAM (and in future production versions), BAM's TA command in the DRAW statement will behave as described above for GW-BASIC.

BTW, this program currently only works in the development version of BAM.  Not just for the TA behaviour described above, but also because of the following enhancement to TA still only found in the development version of BAM: TA allows floating point numbers as well as integers.






















 

🖥 Geometric Mandalas

As a coding exercise, I wanted to make use of DRAW statements to get plot points for regular polygons repeated around an axis to create geom...