- Run the program (exported from BASIC Anywhere Machine into a small HTML file)
- View the source code (based on the QB64 version by "bplus", it based on a SpecBas program by Paul Dunn)
Monday, February 28, 2022
BASIC Anywhere Machine version of "Spheres"
Saturday, February 26, 2022
New Functionality: Session Storage interaction
Just added to BASIC Anywhere Machine:
- SetSessionStorageItem(key, value)
- GetSessionStorageItem(key)
Sample BASIC program:
SetSessionStorageItem ("salutation", "howdy, buddy")
Print GetSessionStorageItem ("salutation")
SetSessionStorageItem (1, 5)
Print GetSessionStorageItem (1)
Please take the following with a grain of salt, as this is my recently acquired understanding based on what I've read (experience-based understanding is pending!):
Difference between these and the "LocalStorage" counterparts:
- LocalStorage is persistent (i.e. will still be available after browser/computer restart) and shared among all "same site" web pages across open same-browser instances and browser tabs
- SessionStorage is temporary and only persistent in the current browser tab's access to a web page (close the tab or navigate to some other website, and temporary storage is gone.)
A little bit of graphing fun with SIN()
This is an example of the "Algorithmic Digital Art" BASIC Anywhere Machine use case. Nothing complicated, but still kind of fun.
This is also an opportunity to showcase the benefit of BASIC Anywhere Machine's ability to export a BASIC program, along with everything needed (and just what is needed) for that BASIC program to run in an HTML file, which can then be deployed/shared however one needs. (See the links in the video's description, or find the links below the embedded video right here.)
Cheers !
Run the program: https://basicanywheremachine.neocitie... View the source code: https://basicanywheremachine.neocitie...
Wednesday, February 16, 2022
On-going research: "Communication" between TiddlyWiki and a BASIC Anywhere Machine program
Check out this primitive prototype.
The trick involves TiddlyWiki and a BASIC program to share/communicate data via scheduled and/or on demand reading and writing to the web browser's local storage.
Sunday, February 13, 2022
Programming Reference: integration of code samples from BASIC Anywhere Machine
Although I've always appreciated program samples in any programming reference, I've always disliked having to type in that program to see it in action.
So one of my many missions with BASIC Anywhere Machine is to have a programmer's reference (in a dedicated TiddlyWiki instance) that knows how to display sample programs from BASIC Anywhere Machine (a separate dedicated TiddlyWiki instance) via some tagging, along with a button to run a sample program "right there."
Cheers !
Wednesday, February 9, 2022
𪲠Fix to issue: CIRCLE color fill
The latest version of BASIC Anywhere Machine fixes an issue that exists in wwwBASIC.
CIRCLE (column%, row%), radius%, drawColor%, startRadian!, stopRadian!, aspect!,aspect!,F
The "F" parameter in the CIRCLE statement triggers color fill for a circle.
For example:
screen 21
circle(1,1),325, &hffff00, , , ,F
In wwwBASIC, color-filling a circle with radius greater than 113 (screen modes 11,12,14-21) causes the entire screen to get painted. The color spills out of the circle via a very small gap between the pixels in the circle's border.
The CIRCLE statement in BASIC Anywhere Machine is fixed such that circles with radius greater than 113 will be filled with color without the color spilling out into the rest of the screen.
Saturday, February 5, 2022
New Functionality: Toe-Dip into Local Storage interaction
Just added to BASIC Anywhere Machine:
- SetLocalStorageItem(key, value)
- GetLocalStorageItem(key)
SetLocalStorageItem ("salutation", "howdy, buddy")Print GetLocalStorageItem ("salutation")SetLocalStorageItem (1, 5)Print GetLocalStorageItem (1)
đĽ Ardi's Graph
A port and mod of a program shared by Ardi Ardi with the "BASIC Programming Language" Facebook group via this post . This program ...
-
Drawing regular polygons is pretty easy when using DRAW to generate the points of the polygon, using specified coordinates for the center of...
-
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...
-
This program by Charlie Veniot is a port and mod of Ian Witham's C64 program found in this YouTube video. New colours are randomly proje...