Calculate resistance and tolerance values from 4-band and 5-band color rings with interactive visual feedback.