Main func. body
Let screen height = 22 and width = 80
total area = 1760
A = 0, B = 0
A is angle for rotation on X-axis, B is angle for rotation on Z-axis, when we rotate circle on Y-axis, it becomes donut
ϕ for Y-axis, θ for creating circle
create 2 arrays of 1760, 1 that stores donuts characters to print, other that stores z index maybe in double type
double zBuffer[1760];
char buffer[1760];
create a new screen with printf("\x1b[2J");
and add infinite loop
while (1) {
}
Top comments (0)