code

 

#include <math.h>
#include <stdio.h>
#include <unistd.h>
/////////////////
#include <iostream>
#include <thread>
using namespace std;
using namespace std::chrono_literals;

int main() {


cout << "You know ...\n" << flush;
this_thread::sleep_for(2s);
cout << "♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡\n" << flush;
this_thread::sleep_for(1s);
cout << "It has been a while \n";
this_thread::sleep_for(2s);
cout << "♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡\n" << flush;
this_thread::sleep_for(1s);
cout << "A looong while \n";
this_thread::sleep_for(2s);
cout << "♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡\n" << flush;
this_thread::sleep_for(1s);

cout << "52 days : 4 hours : 32 mins \n";
this_thread::sleep_for(2s);
cout << "♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡\n" << flush;
this_thread::sleep_for(1s);
cout << "U always on ma minnd 。゚゚・。・゚゚。 \n"
" ゚ M 。゚ \n"
" ・。・゚\n\n";
this_thread::sleep_for(2s);
cout << "♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡\n" << flush;

this_thread::sleep_for(1s);
cout << "I just want to remind you that I will never forget what we had planned \n\n";
this_thread::sleep_for(2s);
cout << "And finally .... \n\n";
this_thread::sleep_for(1s);
cout << "STAY TUNED \n\n";
this_thread::sleep_for(1s);
cout << "I just want to remind you that I will never forget what we had planned \n\n";
this_thread::sleep_for(1s);
cout << "11 DAYS : 7 HOURS : 9 MINS LEEFT MY NIGGGAAA \n\n";
this_thread::sleep_for(7s);

//////////////////////////////////////

printf("\x1b[2J\x1b[?25l");

float t = 0;
while (1) {
float zb[100 * 40] = {0};
float maxz = 0, c = cos(t), s = sin(t);
for (float y = -0.5f; y <= 0.5f; y += 0.01f) {
// Add beating effect
float r = 0.4f + 0.05f * pow(0.5f + 0.5f * sin(t * 6 + y * 2), 8);
for (float x = -0.5f; x <= 0.5f; x += 0.01f) {
// heart formula
float z = -x * x - pow(1.2f * y - fabs(x) * 2 / 3, 2) + r * r;
if (z < 0)
continue;
z = sqrt(z) / (2 - y);
for (float tz = -z; tz <= z; tz += z / 6) {
// Rotate
float nx = x * c - tz * s;
float nz = x * s + tz * c;

// Add perspective
float p = 1 + nz / 2;
int vx = lroundf((nx * p + 0.5f) * 80 + 10);
int vy = lroundf((-y * p + 0.5f) * 39 + 2);
int idx = vx + vy * 100;
if (zb[idx] <= nz) {
zb[idx] = nz;
if (maxz <= nz)
maxz = nz;
}
}
}
}

printf("\x1b[H");
for (int i = 0; i < 100 * 40; i++)
putchar(i % 100 ? " .,-~:;=!*#$@@"[lroundf(zb[i] / maxz * 13)] : 10);

t += 0.003f;
usleep(3000);
}


////////////////////////////////////


return 0;
}

Comments

Popular posts from this blog

https://khamsat.com/marketing/youtube-marketing/1202072-100-%D9%85%D8%B4%D8%AA%D8%B1%D9%83-%D9%88100-%D9%84%D8%A7%D9%8A%D9%83-%D9%88100-%D9%85%D8%B4%D8%A7%D9%87%D8%AF-%D9%8850-%D8%AA%D8%B9%D9%84%D9%8A%D9%82-%D8%B9%D9%84%D9%89-%D9%8A%D9%88%D8%AA%D9%8A%D9%88%D8%A8-%D9%81%D9%82%D8%B7-5