Skip to content

Postrediori/QBasicPrograms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QBasic Programs Archive

This is a collections of various simple programs written for PC Basic. Topics include: palette cycling, fast animations, fractals&iterative models and more.

Many of this were featured as code-golf on @PCBasicBot and @BBCBasicBot pages.

Requirements

  • QBasic 1.1
  • QuickBasic 4.5 or later

Contents

Animated Gears

In this section each frame of animated gears is rendered and cycled with SCREEN command.

GEARS1.BAS - Single rotating gear.

GEARS1 Screenshot

GEARS2.BAS - A pair of rotating gears' outlines.

GEARS2 Screenshot

GEARS3.BAS - A pair of filled rotating gears.

GEARS3 Screenshot

GEARS4.BAS - Three filled gears.

GEARS4 Screenshot

GEARS5.BAS - Three multicolored gears (an imitation of GLGears).

GEARS5 Screenshot

GEARS6.BAS - A quartet of interconnected gears.

GEARS6 Screenshot

Mazes

This section contains imitations of 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 maze for PC Basic.

MAZE1.BAS - A straighforward port of C64 program. Doesn't look like a connected maze bacause symbols look differently on PC.

MAZE1 Screenshot

MAZE2.BAS - A more closer imitation of the maze, but in graphical format using GET and PUT to create and render diagonal lines as sprites.

MAZE2 Screenshot

MAZE3.BAS - A different type of maze with slightly different sprites.

MAZE3 Screenshot

MAZE4.BAS - And another maze, this time with 3 sprites.

MAZE4 Screenshot

MAZE5.BAS - The second version of 3-sprite maze.

MAZE5 Screenshot

MAZE6.BAS - Same as above, but sprites are created as hexademical array with DATA instead of manual LINE drawing.

MAZE6 Screenshot

Iterative systems

Images created with a system of iterative equations.

FERN.BAS - The Barnsley fern.

FERN Screenshot

LORENZ.BAS - Animated Lorenz attractor.

LORENZ Screenshot

LORENZ2.BAS - Another animated Lorenz attractor with different shading.

LORENZ2 Screenshot

CHAOS1.BAS - The classic logistic map of Xn+1=R Xn(1-Xn). Each value of R receives 200 iterations.

CHAOS1 Screenshot

CHAOS2.BAS - Same as above, but with 50 iterations for each value of R.

CHAOS2 Screenshot

VORONOI.BAS - Voronoi tessellation of a plane.

VORONOI Screenshot

Text-mode fractals

Julia and Mandelbrot sets in ASCII text mode.

TXTJULIA.BAS - Text-based Julia set in ASCII-symbol graphics.

TXTJULIA Screenshot

TXTJLIA2.BAS - Text-based Julia set with colored characters.

TXTJLIA2 Screenshot

TXTMNDL.BAS - Text-based Mandelbrot set with colored characters.

TXTMNDL Screenshot

Parametric curves

LSSJOUS1.BAS - A collection of Lissajous curves with various a and b parameters.

LSSJOUS1 Screenshot

LSSJOUS2.BAS - Several Lissajous curves animated with SCREEN.

LSSJOUS2 Screenshot

ROSE1.BAS - A parametris rose curve with filled segments.

ROSE1 Screenshot

ROSE2.BAS - Same as above, but with different palette.

ROSE2 Screenshot

ROSE3.BAS - Another shading method for the curve.

ROSE3 Screenshot

ROSE5.BAS - A different type of rose curve.

ROSE5 Screenshot

Flower curves

This section also contains parametric curves, but drawn as 'flowers' with different filling techniques.

FLOWER1.BAS

FLOWER1 Screenshot

FLOWER2.BAS

FLOWER2 Screenshot

FLOWER3.BAS

FLOWER3 Screenshot

FLOWER4.BAS

FLOWER4 Screenshot

FLOWER5.BAS

FLOWER5 Screenshot

Plane fractals

PEANO.BAS - The Peano curve.

PEANO Screenshot

DRAGON.BAS - The Heighway dragon.

DRAGON Screenshot

Sierpinski cellular automatons

Creating Sierpinski patterns with line-by-line cellular automatons based on division modulus of a Pascal's triangle numbers.

SIERPIN1.BAS - A classic Sierpinski cellular automaton.

SIERPIN1 Screenshot

SIERPIN2.BAS - Same as above, but centered on the screen.

SIERPIN2 Screenshot

SIERPIN3.BAS - A pattern using bitwise AND 15 operation instead of MOD 2.

SIERPIN3 Screenshot

Segmented digit display

Programs that draw segmented digits.

DIGITS1.BAS - Draw all digits from 0 to 9 in with 7 segments.

DIGITS1 Screenshot

DIGITS2.BAS - Same as above, but more slim with 6 pixel withs instead of 8.

DIGITS2 Screenshot

DIGITS3.BAS - Single-digit counter.

DIGITS3 Screenshot

DIGITS4.BAS - Three-digit counter with simpler shapes.

DIGITS4 Screenshot

DIGITS5.BAS - Hex counter with two digits.

DIGITS5 Screenshot

3D objects

Wireframes for 3D objects.

SPHERE3D.BAS - Sphere 3D wireframe.

SPHERE3D Screenshot

TORUS3D.BAS - Torus 3D wireframe.

TORUS3D Screenshot

TORUS3D2.BAS - Animated torus 3D wireframe.

TORUS3D2 Screenshot

3D surfaces

Plotting 3D surfaces.

SURF3D.BAS - "Wave" 3D plot.

SURF3D Screenshot

DROP3D.BAS - The plot above animated with palette cycling.

DROP3D Screenshot

SURF3D2.BAS - A different type of plot.

SURF3D2 Screenshot

SPIRAL3D.BAS - 3D plot of double spiral.

SPIRAL3D Screenshot

Many colors

Demos that mean to display as many colors as possible in VGA modes provided by QBasic

SPLAT1.BAS - Color 'splats'.

SPLAT1 Screenshot

SPLAT2.BAS - A similar algorithm as above.

SPLAT2 Screenshot

SUN.BAS - Cocentric circles with palette cycling.

SUN Screenshot

RAINBOW.BAS - Palette cycling of sectors.

RAINBOW Screenshot

PALETTE.BAS - Fullscreen color cycle over all possible colors in SCREEN 12.

PALETTE Screenshot

Scattering simulations

Simulations of particle scattering with RNG.

SCATTER1.BAS - Simple scattering from a hole.

SCATTER1 Screenshot

SCATTER2.BAS - Same as above but with different parameters.

SCATTER2 Screenshot

DIFRACT1.BAS - Single-slit difraction simulation.

DIFRACT1 Screenshot

DIFRACT2.BAS - Same as above but mostly integer-based and therefore faster.

DIFRACT2 Screenshot

SPIRAL1.BAS - 4-ray spiral.

SPIRAL1 Screenshot

SPIRAL2.BAS - Same as above but more optimized.

SPIRAL2 Screenshot

SPIRAL3.BAS - 8-ray spiral.

SPIRAL3 Screenshot

Miscellaneous

BURN.BAS - "Burning" demo from pouet.net. CALL runs x86 bytecode encoded as string characters.

BURN Screenshot

FIBSPRL.BAS - Fibonacci spiral with different color for each individual spiral.

FIBSPRL Screenshot

MATRIX.BAS - Falling letters in text mode.

MATRIX Screenshot

TXTMOIRE.BAS - Moiré pattern in text mode.

TXTMOIRE Screenshot

TXTDROP.BAS - Text mode water circles animated with with palette cycling.

TXTDROP Screenshot

YINYANG.BAS - Rotating Yin-Yang symbol.

YINYANG Screenshot

WIN95.BAS - Win95 logo.

WIN95 Screenshot

About

A collections of various simple programs written for PC Basic

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published