This submission includes two tools.
getresistor() returns resistance values in the specified IEC 60063 E-series.
makeresistor() generates an image of a resistor, which may be useful for developing resistor decoding projects based on image processing.
A simple demo file is also included.
makeresistor can generate simple images with consistent color/geometry and uniform illumination
... or it can generate images where any (or all) of multiple parameters can be randomly varied.