#include<iostream>
int main()
{
int width = 120;
int height = 30;
float aspect = (float)width / height;
float Tlqkf = 11.0f / 24.0f;
char* display = new char[width * height + 1];
display[width * height] = '\0';
for (int e = 0; e < 10000; e++) {
for (int i = 0; i < width; i++) {
for (int j = 0; j < height; j++) {
float x = (float)i / width * 2.0f - 1.0f;
float y = (float)j / height * 2.0f - 1.0f;
x *= aspect * Tlqkf;
x += sin(e * 0.001);
char pixel = ' ';
if (x * x + y * y < 0.5) {
pixel = 'cb';
}
display[i + j * width] = pixel;
}
}
std::cout << display << std::endl;
}
return 0;
}
댓글 0