Applet for resistor calculation
from colors codes and colors deduction from resist value.

Common types
of resistors have colors codes to indicate their value.
In this applet we have implemented 6 types de resistors, the color code obey
the following rules :
-) 3 bands : the two firsts bands represent significative numbers and the
third band represent multiplier.
-) 4 bands :the two firsts
bands represent significative numbers, the third band represent multiplier
and the forth band is the tolerance (error percentage).
-) 5 bands : the three
firsts bands represent significative numbers, the forth band represent multiplier
and the fifth band is the tolerance.
-) 6 bands : the
three firsts bands represent significative numbers, the forth band represent
multiplier,
the fifth band is the tolerance and the last one is for the temperature
coefficient .

In all cases the colors codes is : black = 0, brown
= 1, red = 2, orange
= 3, yellow = 4,
green = 5, blue
= 6, violet = 7, gray =
8, white = 9. Tolerance : gold = 5% , silver = 10%, none color =20%