Looking at the code, it looks like it was just made from the sample wave effect with some magic numbers thrown in, a couple variables renamed, formatting changed a little and comments replaced with your own? Oh and a color parameter, I guess that part is useful.