LED Chasing Lights Progamming

Something like, but not that. digitalWrite is as it's name says, digital. On or off.

You have to use analogWrite to vary the brightness. Only a select number of the pins on the Arduino support analogWrite though.