Appendix A: Auxiliary Modules

Some of the example programs used the modules Colors and Pictures. These modules are not part of Trestle or VBTKit. They were written for the use of the example programs. In order to be complete, we give the code for these modules in their entirety here.

The module Colors, as defined in the interface file Colors.i3, provides Trestle objects of type PaintOp.T corresponding to some common colors used by the example programs. The implementation of the module is Colors.m3.

The module Pictures, as defined in the interface file Pictures.i3, provides two graphic VBT's formed from two bitmapped images. One picture is of a rare stamp, the other is a picture of a windmill. The implementation of the module is Pictures.m3.