Example programs

These programs can be found in the tkExamples directory.
Balls.hs. A canvas where the user can create bouncing balls by clicking with the left mouse button. Uses periodic execution to create animation.
Calculator.hs. A simple HP-style calculator.
Colors.hs. Using sliders to select a color for the background of a canvas.
Fifteen.hs. The 15-puzzle.
Fractal.hs. Fractal images produced by randomly iterating an initial point through affine maps.
OPaint.hs. A rudimentary painting program. Simple geometrical shapes can be created (button 1), moved (button 2) and raised (button 3). Paintings can be saved to files.
ReactionTester.hs. A simple program to test the user's reaction time.
Scribbler.hs. An even more rudimentary line drawing program.
Solitaire.hs. A version of Klondike. (In subdirectory solitaire.)
Sources.hs. A listbox with file names of the example programs. Double-clicking on an entry opens a text editor with source code. To illustrate program interaction with the text editor, some simple editing of the first line can be done using buttons.