Cut stripes from each colored fabric with the grain and reassemble a single piece of striped fabric.
I used a serger to keep things tidy.
Press the seam allowances towards the colored stripes.
My stripes are a half inch wide with a quarter inch of seam allowance on each edge, and I left about 5 inches at the end of the “champagne” colored fabric that’s meant to represent the ceramic body of the resistor.