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.

Return to Top Page

Next Page