analog read/write help

what happens is you put a number = to fade. this number will determine the speed at which the colors fade together. what i want to have happen is assign pot to change this speed. maybe it needs to change the fade number? i have been working on having a pot control the delay time.