Resistor Color Band Calculator

I’d say just straight multiplication - though you may need to divide by 100 to get the real percentage. For example,

  • 130Ohms +/- 1% is 128.7-131.3.

Which is 130 +/- (1 *130)/100.


You may be better off using a different image, with the +/- symbol and % sign on it. But you can use the same technique with one sprite and multiple animations plus an object variable to hold the tolerance value.


You don’t need the BandNameTol, because you already know it’s a tolerance band that was clicked on. I’ll leave using the colour from animation name because there aren’t that many bands to dealt with.

At this stage I’d say store the calculated the resistance in a variable, and then apply the tolerances :


Check out this link on how to achieve that.