Calculate resistor band colors