Art-Creating Trigonometry by Hamid Naderi Yeganeh
(Click on the link above to view all images and access related source code and to run the programs.)
Art-Creating Trigonometry by Hamid Naderi Yeganeh
(Click on the link above to view all images and access related source code and to run the programs.)
The STOP statement will terminate a program immediately, displaying "BREAK" in the console window.
The END statement, to indicate the end point of the program, used to end the program without any indication that a running program reached the end (is the program done or is the program busy? No way to know.)
Now, the END statement prints to the console "Program End." To indicate that a program has reached the end of the source code, it is a really good idea to include an END statement, letting a user know a program is actually done running.
In wwwBASIC, the GET statement's rectangle coordinates must be specified as top-left and bottom right corners of the rectangle in that specific order.
The same corners specified in reverse order, or the opposite corners specified in any order, all will cause a program to fail without errors.
The version of wwwBASIC in the latest version of BAM modified the GET statement so any opposite corners in any order can be specified. So any of the following will work:
GET (x1,y1) - (x2,y2), array_name
Just fixed a weird issue with multiple multiple blank lines causing programs to either become non-responsive or, more likely, not run at all.
The problem seemed to happen when there were 2, 5, 8, 11, 14, or more (increments of three) blank lines between two lines of code and/or comments.
Caused by some "wikification" process code I had inserted trying to resolve an issue with wrong line numbers getting reported upon errors in BASIC syntax/etc.
On April 22nd, I had modified BASIC Anywhere Machine (aka "BAM!") to stop throttling applications.
That provided a major speed boost to BAM! programs. It did, though, make classic BASIC games like Donkey.BAS completely unplayable.
I finally got around to setting up a user interface for setting throttling properties on individual programs.
By default, programs have no throttling. Set throttling when needed on a case by case basis.
I've provided a wide range of throttling values (from zero to ten million, in hundred thousand increments) while I evaluate different throttling values on applications.
Eventually, I might reduce the number of throttling options (i.e. increase the size of the increments) if there isn't any value in having that many options between the start and the end of the range.
Two screenshots below:
I just uploaded a new version of BASIC Anywhere Machine with a more formal/traditional syntax for the include directive.
Aside, about include directives (from Wikipedia):
Many programming languages and other computer files have a directive, often called include (sometimes copy or import), that causes the contents of the specified file to be inserted into the original file.
Syntax for the include directive in BAM:
<<include "File Name">>
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...