Got most of the math done for resistor drawing. Needs cleanup