This program is a port and mod of Steve Justice's program presented in the "Fractals in Focus" article found in the May 1985 issue of 80micro magazine. (Available via đ this Internet Archive link.)
Find all links for the BAM program after this foreword blurb.
One of my primary goals for BASIC Anywhere Machine: the ability to, without too much effort and too many headaches, bring to life some old BASIC programs from the 70's and 80's.
What's the point in being able to run those programs if you can't share them easily? And there is another primary goal for BASIC Anywhere Machine: the ability to share such programs in a single and small HTML file, fully self-contained (I.e. no dependencies) and with a sole requirement of a modern Web browser (operating system agnostic, device agnostic) that doesn't even need to be connected to the web once that HTML file is on some local storage device.
I am a "tweaker" at heart (with BASIC programs the same as with food recipes.) One of the things I really like about BASIC Anywhere Machine versus running these classic BASIC programs on old hardware or emulators of old hardware: I can easily get one of these old programs working in BAM (all of the smart original code left as-is! GOTO's and all !), and then easily intertwingle the original code with some modern code that gives the old programs some snazzy new twists.
I've made the following modifications to Steve's program:
- I've removed the code related to printing a fractal graphic; to copy or save an image, right-click on the image, and access your browser's copy/save functionality via the context menu
- I've added a "C" option for inverted graphs: "Y" will invert a graph, "C" will combine the non-inverted and inverted graphs, and any other value will (as per the original program) creates a non-inverted graph
- I've limited the number of sides for a graph within the inclusive range of 3 to 20 sides
- I've limited the number of levels for a graph within the inclusive range of 1 to 6 levels
- Every graph will be, randomly, either a single random colors, or multi-color (a number of random colors equal to the number of levels)
- I've setup an "auto-pilot" mode so the program behaves like a screen-saver; simply add a parameter to the program's URL: ?autopilot=Y
- I've setup the program to use screen mode 15 ( 64 colors, minus black which is the program's background color)
- Run the program in "manual" mode
- (i.e. you provide the attributes for every drawing, except colors which are always random)
- Run the program in "auto-pilot" mode
- (the program generates a new fractal graphic after 7 seconds)
- View the source code
No comments:
Post a Comment