analog read/write help

Read this before posting a programming question

I want a pot to read its value and write the speed at which the LEDs fade together. Im positive this can be done.

What happens? What do you expect to happen?