Demo Programs

Demo Programs with GUI

Mandelbrot Explorer - Fractal Demo

Explore fractals in BASIC256 with a full-featured viewer.

Download
Pond life simulation Demo

Critters! shows simulated pond life with interactive controls and gameplay.

Download
Perlin Noise Demo – Procedural Terrain in BASIC-256

Procedural terrain using Perlin noise.

Download
Paint Program Demo

Functional paint program written in Basic-256. (Changes in Basic-256 over the years have broken some things...)

Download
Logistical map Demo - Cobweb Plot

CobwebPlot lets you study the dynamics of iterating the logistical map y=r*x*(1-x)

Download
Percolation Demo

Percolation is a percolation grid program where you can influence the permeability of the grid

Download
Game of Life Demo - Cellular Automaton

The Game of Life is a cellular automaton devised by the British mathematician John Horton Conway.This Life! program also contains a lot of variants to the Game of Life

Download
DOL & BOL Lindemayer Demo

Some examples of Deterministic and Bracketed Context-free L-Systems.
From the book "The Algorithmic Beauty of Plants" by A. Lindenmayer and P. Prusinkiewicz.

Download
Spirograph-like Demo - Doodle Generator

Spirograph-like doodles. Creates even non-'rotationally symmetric' doodles.

Download

Demo Programs using Particles

Particle Pointer Demo

Particles stream from your cursor in real time.

Download
Particle Pointer Demo - with GUI

The Particle Pointer program, but with a BTK2 GUI. This allows you to tweak the settings while running the program.

Download
Particle text Demo

The text will desintegrates.... Nice to embed somewhere else

Download
Polygon Particles Demo

High-energy particle bursts with polygon shapes.

Download
Diffusion-limited Aggregation Demo

Particles with Brownian motion stick to the sides of their 'container' to form particle aggregates.

Download
Text Effects Demo - Using particles to desintegrate text

Turn text into dynamic particle animations.

Download
Particle Multiplication Demo

Particles are bounced against a circle and, when they do, a new particle is created.

Download

Flying Starfield Demo

Hyperdrive effect where stars get bigger as they zoom past. Warp factor 5, Mr Sulu!!

Download

Also made one where stars are just streaks. This one is shown in the mp4

Download

Thanks to Daniel Schiffman of Coding Train-fame!!

Star-eating Black Hole

A galaxy has a black hole that merges with infalling stars. Stars are reborn

Download

Slime Mold

Slime Mold simulation with some interactivity

Download

Particle Life

Slow implementation of Particle Life

Download

Experimental Demo Programs

Flood-It Game

A playable version of the classic puzzle game.

Download
Rotating Sphere Demo

3D sphere rendering with hidden line removal.

Download
Dancing Tentacles

Organic animated tentacle simulation.

Download
BasicBlox!

Primitive Basic-256 version of the Breakout game. It is a bit playable although blocks sometimes don't disappear. Very limited in functionality. (No Arkanoid !!!)

Download
Pliant Grid

Port of a LUA program. A grid where the nodes are attracted to your mouse when it moves.

Download
Bubble Universe

Port of a SpecBas program via an OpenProcessing port. No idea why it does what it does. Mesmerizing....

Download
Field Lines

Port of a QB64 program by J. Penner, original by K. Moerman and E. Schraf'

Download

Silly but nice chatbot experiment

No graphics, pure text-based. Give it a try.

Download

How to use the GUI Toolkit

About the BTK2 Toolkit

Basic-256 is quite a simple basic dialect without a widget based layout, but you can create your own widget set in Basic-256 itself! BTK2 is a set of subroutines to draw standard buttons, radio-buttons, spin-boxes, sliders, tab-bars, 3D groupers and canvas elements for text & graphics output. The main advantage is changing program parameters while running the program. Also added a version of BTK2 that gives a bit of the old Aqua-like interface style.

BTK2 Demo Program

A demo grouping all BTK2 GUI elements in a single, simple program.
Each tab illustrate a separate widget with comments embedded in the code. The tabbed programs are functional, simple and lighthearted and show that all elements can be easily pulled into a single program.

Download Win32

BTK2 Button

The humble pushbutton.... Each widget in this list comes in a functional program with inline comments so you can understand how to use it.

Download Win32

BTK2 Radio button

The humble pushbutton.... Each widget comes in a functional program with inline comments so you can understand how to use it.

Download Win32

BTK2 Slider

A simple slider.... Each widget comes in a functional program with inline comments so you can understand how to use it.

Download Win32

BTK2 Drawing Element

This widget can be used for example as a drawing area for graphics or as fields showing variable data

Download Win32

BTK2 Spinner Element

This widget can be used for program input of numeric or string values when the amount of choice is too large for Radio buttons. There is no fully adapted aqua version yet....

Download Win32

BTK2 Checkbox Element

This widget is a small box on which a check mark appears when the option indicated next to the box is turned on, and disappears when the option is turned off.

Download Win32

BTK2 Grouper Element

This widget is a 3D frame used to group similar radio- or checkbuttons. It can also be used as a textbox or as a horizontal or vertical separator.

Download Win32

BTK2 TabBar Element

simple TabBar widget....

Download Win32