COLOURCUBE: Executable or Text Version


The program will display 16.8 million colours (eventually), by displaying random "slices" through a cube of colours, with Red, Green and Blue ranging from zero to full strength along three main edges which meet at the Origin - being pure Black in colour. The opposite vertex is pure White in colour.

If you have BBC BASIC for Windows, you can cut and paste the TEXT Listing and it will RUN.

Press -s- to STOP the program once the current slice has finished displaying, then any other key to EXIT.
Alternatively, press the -Esc- key at any time, or if all else fails press
Alt-F4.

Bouncing Balls: Executable or Text Version

Up to FIFTEEN balls bounce around the screen and off each other, according to their "bouncy-ness", by selecting the Coefficient of Restitution.

The balls travel in parabolas in accordance with very simple projectile theory.

The only complicated bit of Maths comes in when the balls hit each other, when you need to work out the velocity components along the line of contact and perpendicular to it, using simple vector formulae.

Worrying Sheep: Executable or Text Version

This program is all about a dog chasing sheep. The sheep cluster together unless the dog gets too close in which case they run away. It seems to create the illusion of artificial intelligence, although it's a simple set of rules governing the behaviour of the sheep and the dog.

The ColourCube program produces an extremely smooth colour transition.

Return to Top Page                                                                                              Next Page