Ultrasonic Range Finder Controlled RGB

Hi everyone. Still a newbie. Just breaking out the Arduino again after I got my ultrasonic range finder delivered. Here is my quick project.

I could not find anything like this online so I used someones code that made a pot controlled rgb, and someones URF library to make this!