Shantz, here are the functions in C that i used... I have added comentaries on the code so some things are clarified. You need to download and use the Turbo C compiler, because of the graphic mode i used, I don't know how to implement the code for other compilers. If you need the funcitons for fourier transforms, tell me, and i'll look for em in my notes....
Any further help PM me


cheers