Wugi's hoom Wugi's QBasics     
QBasic gecodeerd gepeins - Qbasics in codex

Guido "Wugi" Wuyts @ Dilbeek, Belgium, Europe, World, Solar System, Milky Way, Local Cluster, ...


@ 3 Taalzaak
@ 2 Denkzaak
@ 1 Smaakzaak
@ 0 Wugi's hoom
Relatieve tijd
QBasics
Font & script
NieuwsDenk
O, redactie
NPN
Readers' Indigest
NewsThink
Mathness
Inlaadbare .bas en .exe bestanden:
...
Downloadable .bas and .exe files   
Gewaardeerde QBasic webstekken:
...
Appreciated QBasic web sites

Extensive QB pages
qbComplex and qbRelaty , see more at tips below ...


Inlaadbare .bas en .exe bestanden:  Downloadable .bas and .exe files:

MEET  QB64      

QBasic does not work any longer on its own in a Windows environment.  I've kept the old General remarks and file descriptions almost unchanged below.  
   
Instead there is now a Windows-compatible version: QB64. Its portal site with download facilities is here:  https://www.portal.qb64.org/. Simply install the software.
    A *.bas program opened in QB64 can be run immediately. QB64 will then create an *.exe file (in its own directory), and run it.  Afterwards the *.exe can also be run on its own.
    It is worth reminding that a QB64 editing or output window can be brought to Full Screen by pushing the keys ALT+ENTER. Using them repeatedly lets you cycle through the modes
    Window  =>  Full Screen  =>  Full Screen interlaced  =>  Full Screen proportional*  =>  Full Screen proportional interlaced  =>  Window
    *proportional = centered and with the screen ratio of a DOS screen (640x480, or 3x2), so that circles and squares get well-proportioned.
    
I have made adapted QB64 *.bas versions of the programs on this page. I have joined them all together in one *.zip file, which is dowloadable here.
    In many programs the adaptation consists of, or includes, slowing down execution speed to get a smooth animation.
    Look for a (nested) loop "FOR dum = 0 TO 10000 : (FOR dum2 = 0 TO NNN : NEXT dum2 :) NEXT dum" and adapt the limits if too slow or fast yet...
   
Another zip file with VB (VisualBasic) versions of some of these programs is also available here .
   
I have also uploaded the *.bas files and the *.exe files into Google Drive. Here are the links for the *.bas directory and the *.exe directory (~75 MB).
   I've also included the VB and Excel files in the *.exe directory.
    An alternative description of this page with individual links to the *.exe files (but without links to the individual code and screenshot zip files) is here.


General remarks

  •     Got rid of QBasic or never seen it? (it's a Dos command). Download it here!
     
  •     QBasic does not work any longer on its own in a Windows environment. One needs a "DOS shell" tool to have it run in. This is achieved eg by DOSBox, from within which QB is then launched, its programs opened and run. Moreover, you can take screenshots or a video of the output. More at http://en.wikipedia.org/wiki/DOSBox   and    http://www.dosbox.com/   ...
  •     An alternative for QB, PowerBasic or PB, is also no longer Windows-compatible, but can be run within DOSBox. Often the same .bas-code may run both in QB and PB. Occasionally I've written an adapted PB .bas code, in the remaining cases only QB would run the .bas file. In the case of Tapistry, it had to be PB only, due to a DIM HUGE command unavailable in QB. The program wouldn't even run within PB, but the compiled program runs all right.

  •     I have also some Visual Basic or VB program versions or programs, mentioned where available ( .vbp, .vbw, .frm and corresponding .exe files)
  •     Each program below comes with a code.zip and a screenshot.zip file. The code.zip may contain QB and/or PB .bas code, the .exe compilations (for compiling QB the extended QuickBasic program is needed), and where available VB or Excel versions. The screenshot.zip shows some output examples of the program, and occasionally also the intro screens or menus. For some programs other illustratory material is available, which is then pointed to.

Fysica Physics

code screenshots description

tips 

EarthSun Aardezon AardeZon: Weergave van hemelsfeer gezien vanop aarde, en de zonnebanen erop
EarthSun: Rendering of celestial sphere as seen on earth, and of sun paths thereon
 
Botsing Botsing Botsingen tussen twee deeltjes (elastisch tot absorptie)
Collisions between two particles (elastic thru absorption)
 

Relaty
 
Relaty
Relaty-TwinPar
Relateit: Een spoedcursus speciale relativiteit, vanuit meetkundig perspectief, met bewegend beeld
Relaty: Quick course on Special relativity, from a geometric approach, with moving display
see examples at qbRelaty and
notes at MySRT page
paratwin 
Relasee Relasee Hoe relativistische objecten gezien worden is, gegeven de eindige lichtsnelheid, nog wat anders dan hun Lorentzcoördinaten!
Seeing relativistic objects at work is another step beyond the Lorentz transformation ! (given finite light speed)
see examples at qbRelaty and
notes at MySRT page
paratwin 
Lichklok

Lichklok

Lichtklokken als bouwstenen van ruimtetijd.
Light clocks as building blocks of spacetime
see examples at qbRelaty and
notes at MySRT page
paratwin (#My SRT)
Twinty see tips
Een Tweelingparadoxsimulator, Relaty benadering
A Twin Paradox simulator, Relaty- or Lorentz flavoured.
see examples at qbRelaty and
notes at MySRT page
paratwin (#Twinty and Twinsee)
Twinsee see tips
Een Tweelingparadoxsimulator, Relasee benadering
A Twin Paradox simulator, Relasee- or Einstein flavoured.
see examples at qbRelaty and
notes at MySRT page
paratwin (#Twinty and Twinsee)
Twintest

Twintest

Twinrev3: A Minkovsky description in the frame(s) of the traveler twin
Twintest: Showing the aging process of the twins
Twinrev3: see at MySRT page paratwin (#TwinRev)
velocity controls "+","-", end=Space
Twintest: see at MySRT page paratwin (#TwinRev)
velocity controls "+","-", end=Space
 
   

 
Wiskunde Maths

code screenshots description tips
Compleks Complex  2D weergave van 4D objecten beantwoordend aan complexe functies Y=F(X)
2D rendering of 4D objects representing complex functions Y=F(X)
 see at   qbComplex
Rationa Rationaa  Het verschil tussen rationaal en irrationaal, als cirkelhoeken
A distinction between rational and irrational, as angles on a circle
            
Randdist  Randdist Het verschil tussen ogenschijnlijke en echte random-verdelingen
Illustrating the difference between apparent and real random distributions
 
Planeet Planet Een soort planeetbaan, als een soort fractalgenerator
A planet trajectory of sorts, as a kind of fractal generator
 
Growth Growth Verscheidene Groei-progs.
Various Growth progs.

Growth
:
door mosachtige vertakking. by moss-like ramification.
SloGro: door aanhechting op een kiem. by attachment to a germ.
ImpaGro: door impact op een kiem. by impact upon a germ.
MigGro: door migratie van een kiem. by migration of a germ.
QuiGro: Snelgroei van een kiem. Quick growth of a germ.
 
Smoothe Smoothe Afvlakking van een N-polygoon 
Smoothe out an N-polyline
 
CelAuto CelAuto Pogingen tot CelAutomaten
Tentative cellular automata
 
CircFrac CircFrac Fractalen vanaf een beginfiguur (eerst een cirkel, maar sindsdien verscheidene), met drie takken, een contractiefactor en een schaalfactor voor de figuur.
Fractals from an initial figure (first a circle, now various), with three branches, a contraction factor and a scale factor for the figure.
Sierpinsky sieve: see parms in menu.
       

Ani-meer Ani-mate

code screenshots description tips
Worm Worm  Metamorfoses van een wormpje
Metamorphoses of a little worm
 
Worms Worms Een wereld van twee wormpjes
A world of two worms

When a worm life ends data is written to a "Worms.txt" file. 

FracSpir FracSpir Fractaal onder elkaar duikende spiraalarmen van Brownse lijnen
Spirals of Brownian line arms whirling fractally beneath each other
NEW! with VB-version
 
RoShrink RoShrink Variaties rond spiralen van elkaar najagende honden
Variations on a spiralling bunch of interhunting hounds
 
Sondriaa Sondriaa Mondriaa: Mondriaanse tableaus. Mondriaan paintings.
Sondriaa: akoustische Mondrianen. acoustic Mondriaans.
 
Tapistry Tapijt Gecompileerd in PowerBasic: maak je eigen tapijt design
Compiled in PowerBasic: make your own tapistry design

I had to use a DIM HUGE command here, unavailable in QB.
Data asked for is written to a "Tapistry.txt" file. 

Sterren Sterren Sterretjes zien op je scherm 
Stars and starlets on ya screen
 
BasiClok BasiClok Een Basic uurwerk ;-)
A Basic Watch ;-)
NEW! with VB-version
 
Obj-Rot Obj-Rot Een objectrotator, rond een vaste as.
An object rotator, around a fixed axis.
 
WavePack WavePack Golfpakketjes simuleren door variëren bandwijdte.
Attempt at showing wave packs through varying sample width.
 
       

Na-Spel A-Game

code screenshots description tips
Kubo Kubo Als je op het voorgaande af wilt kicken, een soortement spel dus
A game to kick off from previous
Have a feel at the Excel-version, unfinished alas :-o)
 
Sudoku Sudoku Een sudoku-oplosser
A sudoku-solver
NEW! with Excel-version

The Basic prog attempts to read a "sudotest.txt" file and writes the solution to a "sudoopl.txt" file, in the same dir.
The Excel version offers also a hints and a "library" tab.

       

 


Gewaardeerde QBasic webstekken:    Appreciated QBasic web sites: