https://github.com/owainkenwayucl/mandbas
Mandelbrot in FreeBASIC for FreeDOS
https://github.com/owainkenwayucl/mandbas
freebasic freedos mandelbrot
Last synced: 23 days ago
JSON representation
Mandelbrot in FreeBASIC for FreeDOS
- Host: GitHub
- URL: https://github.com/owainkenwayucl/mandbas
- Owner: owainkenwayucl
- License: mit
- Created: 2017-07-21T10:20:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-31T09:48:10.000Z (over 8 years ago)
- Last Synced: 2025-09-08T16:57:04.428Z (6 months ago)
- Topics: freebasic, freedos, mandelbrot
- Language: Visual Basic
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Mandelbrot Implementation in FreeBASIC
This is just a quick implementation of a Mandelbrot set generator in FreeBASIC to play with doing graphics on FreeDOS.
To compile the code run `fbc mandel.bas` and then to run the code run `mandel.exe`. You will then be prompted to set some variables (max/min values for X/Y, number of interations, and whether to scale red, green and blue values relative to each other) for which the default values are in square brackets, after which it will plot your resulting Mandelbrot.
To exit, press any key.
*(Note, for some reason I've noticed that the `sleep` at the end can cause a general protection fault if you leave it too long - I assume this is a bug in FreeBASIC somewhere)*
```none
C:\HOME\SOURCE\MANDBAS\>fbc mandel.bas
C:\HOME\SOURCE\MANDBAS\>mandel.exe
<<>>
Owain's Mandelbrot generator
============================
Xmax [1.0]:
Xmin [-2.0]:
Ymax [1.0]:
Ymin [-1.0]:
Max iterations [256]:
Red Scale [1.0]:
Green Scale [1.0]:
Blue Scale [1.0]:
<<>>
```
