Calculate resistor color codes and values