Based On Five Colours
The section that follows is a program that calculates the nominal value of a resistor based on colour codes. It also presents this resistor in pictorial form. The graphical section consists of seven images which are used as variables. This images are programmed simultaneously with the text field where the equivalent resistor value is displayed.