drawing a sphere with anaglyphs for 3d-glasses

Hello !

That is the first time I post a message here.
I am working in a scientific visualisation
project and I need the source code for displaying a simple 3-dimensional solid sphere with anaglyphs that can be viewed with the old fashioned red-green 3d-glasses.

Thank you