Donut-shaped C code that generates a 3D spinning donut