Friday, July 4, 2025
🖥 Fireworks
Wednesday, July 2, 2025
🖥 Digital Clock
This program is a port and mod of Antoni Gual Via's program shared with the "BASIC, QBasic, GWBasic computer programming"' Facebook group.
- About the program
- How to set an LED colour preference
- How to embed the clock in a Web page
- How to download the clock to run locally or host it on your own website
About the program
Antoni Gual Via created with QBasic a "digital 7 segment clock using only DRAW." I've made some changes to placate my fussy nature and a little addition:
- I've filled in the segments (using PAINT, because BAM's DRAW statement does not support the "p" (paint) command
- I'm using screen mode 17 instead of screen mode 12 (for the LED: access to 63 predefined colors, instead of only 15 colors; black is reserved for the clock background colour)
- I'm also using a custom screen resolution
- I've also modified the program to check the URL for a "color" query string which can be used to customize the colour of the clock LED lights.
- The URL for the program without specifying a colour preference
- https://basicanywheremachine.neocities.org/sample_programs/DRAW%20DIGITAL%20CLOCK.prod.run
- The URL for the program with a colour preference specified
- https://basicanywheremachine.neocities.org/sample_programs/DRAW%20DIGITAL%20CLOCK.prod.run?color=15
How to embed the clock in a Web page
How to download the clock to run locally or host it on your own website
Aside: The Chrome web browser on my Chromebook allows setting up an HTML page as an "app", so that the HTML page appears as a stand-alone application, instead of a Web browser tab. The Chromebook remembers the location and size of the clock program. Neat !
Monday, June 16, 2025
🖥 Swirl of Orbs
This program is a port and mod of a Turbo Basic program shared by Shahid Altaf Qureshi with the BASIC Programming Language group on Facebook (🔗 link to post).
Saturday, June 7, 2025
🖥 "Schrafic" Fractals Generator
This program is a port and mod of a QB64 program created by Eric Schraf (and shared with the BASIC Programming Language group on Facebook: 🔗 link to post ).
Saturday, April 26, 2025
🚧 In the Works: "Code Insertion" buttons
Try this in the 🔗 development version of BASIC Anywhere Machine.
Who likes looking up statement/function statements (or code blocks) to whenever does not remember the precise syntax? These buttons (very much a work in progress) will insert template code.
Sunday, April 20, 2025
📚 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:
Friday, April 18, 2025
🖥 Dony Grapher
This program is a port and mod of a program shared by Antoni Gual Via with the "BASIC, QBasic, GWBasic computer programming" Facebook group.
From Antoni's post:
Some graphics from Mr Dony's book. It uses the "bugs in love" algorithm. The circle is divided into triangular sectors. At each vertex of one sector there is a bug that's attracted by tha bug in the vertex in front of him so it moves to reach it. At intervals a picture of the new triangle defined by the moving bugs is plotted. The order of the initial vertices is inverted in even and odd sectors to increase symmetry.
🖥 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...
-
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...
-
EDIT 2026-05-11: Something was causing this program to not work on mobile devices. I'm guessing I had exported and uploaded the wrong v...
-
This program is a port and mod of Steve Justice's program presented in the "Fractals in Focus" article found in the May 1985 i...


.png)
.png)
.png)


