QBasic code to render a Mandelbrot set.
- Install DOSBox
- Download in install QBasic
- Run
QBASIC MANDELBR.BAS
to render the fractal and generate a RAW file - Run
QBASIC SHOWRAW.BAS
to view the RAW file and animate the palettes
Mandelbrot in QBasic
QBasic code to render a Mandelbrot set.
QBASIC MANDELBR.BAS
to render the fractal and generate a RAW fileQBASIC SHOWRAW.BAS
to view the RAW file and animate the palettesLine 52 in a380694
@lilithebowman
Would you be able to add a photo of this running on target hardware?
I'm also curious if a CRT will render it better, if you have one lying around.
The CGA format was created for CRTs and LCD panels don't render them very well.
https://www.youtube.com/watch?v=niKblgZupOc
Although I'm not doing any colour tricks, the colours themselves may look better on CRT anyway.
Falling back to LCD is fine, MVP is just seeing this on actual hardware =)
Line 33 in 7cea87f
In this line, I know you're trying to illustrate what you're doing by showing the 2^2, but doing that calculation on bare metal, on an XT class system like I'm doing right now, is pretty slow. So I changed this out for a 4.
The Micro8088 is a great project for QBASIC fun like this!
x2 = 0
y2 = 0
DO
xt = x2 - y2 + sx
...
x2 = x * x
y2 = x * x
LOOP (x2 + y2 < 4) AND (i < maxi)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.