How do you

Does any one know how to do this?

http://ferryhalim.com/orisinal/ani/colors.htm

He used actionscript for that. the exact code? I don’t know, but i’m pretty sure he used the Math.sin/cos functions as well as the Color object.