Monday, January 22, 2024

🖥 FOR-NEXT: Random STEP values

Inspired by Richard Russell's post (and the related discussion) about BASIC dialects' ability to change the TO and the STEP values within FOR-NEXT blocks, I wrote this little program to demonstrate a trivial use case for random STEP values.

(See Richard Russell's post in the BASIC Programming Language group on Facebook.)




Saturday, January 13, 2024

🖥 Vince mod 43

 A QB64 program by vince, which I've ported to BAM and modified just a little.

To better understand what the code is doing, I modified the color of the LINE statements, and I also commented out one of the LINE statements that makes it hard to see what the other LINE statements are doing.



Friday, January 5, 2024

🖥 Thick Line Color Rotation

"Thin" lines in the 🖥 Line Color Rotation program results in "interference patterns", which are interesting because they give a sensation of texture.

This "thicker" lines version of the program largely eliminates interference patterns.



Thursday, January 4, 2024

🖥 Line Color Rotation

  • Lines running from the center of the screen to the edges of the screen.
  • A number of random colors stored in an array matching the number of lines.
  • In a cycle, all lines are drawn with the colors from the array.
  • Before doing another cycle the colors in the array are shifted to the right.
  • In the next cycle of drawing the same lines, the shifting of colours will make it look like the lines are animated in a clockwise motion.



Wednesday, December 27, 2023

🖥 Mouse Tester program

A little program primarily to test/demonstrate mouse-click handling and mouse-wheel handling.

Also demonstrated:
  • SCREEN _NEWIMAGE (to setup custom screen size for the specified mode)
  • CIRCLE
  • PAINT
  • PRESET
  • IFF
  • FOR NEXT
  • _DISPLAY (forces refresh of the screen; otherwise, the browser page locks up, going into an infinite loop)
  • XMAX and YMAX



Sunday, December 24, 2023

🖥 VC2023 Logiker

"Logiker" has a "Vintage Computing Christmas Challenge 2023" event aimed primarily at vintage computers.

I saw this is a fun coding exercise to do in a "Vintage Computer BASIC" style.




Saturday, December 23, 2023

🖥 GOTO Tester (Enhancements in the works)

(As of this writing, these are changes that exist only in the development version of BAM.)

Summary of enhancements to GOTO

  • ignore leading zeroes in line numbers
    • (this is a change to referenced line numbers referenced in GOTO statements and to declared line numbers (i.e. line numbers at the start of lines)
  • new "EVAL clause"
    • (can be used to evaluate either line numbers or line labels)

The test program

🖥 Clock ("time visualizer" design)

A clock with a little bit of a "time visualizer" vibe. Run the program View the source code