Advanced Preloader

I have found many examples of how to do simple preloaders with bars and animations. Ive got that down but wont to go a step further. I have seen preloaders that fill a vector shape. Here is one for example. Does anyone have any input on how to do that or where I can find an example? http://www.evanderholyfield.com/