#include <iostream>
#include <string>
#include <format>
struct ColorV4 {
uint8_t r, g, b;
constexpr ColorV4() : r(0), g(0), b(0) {}
constexpr ColorV4(uint8_t _r, uint8_t _g, uint8_t _b) : r(_r), g(_g),b(_b) {}
};
struct ConsoleText{
void pout(const std::string& str, const ColorV4& col,const ColorV4& colBack,bool isBackground = false) {
if(isBackground){
std::cout << std::format("\e[48;2;{};{};{}m\e[38;2;{};{};{}m{}\e[0m",
colBack.r, colBack.g, colBack.b,
col.r, col.g, col.b,
str);
}else{
std::cout << std::format("\e[38;2;{};{};{}m{}\e[0m",
col.r, col.g, col.b, str);
}
}
};
ConsoleText Console;
void GenCubesANSI(int64_t count){
static int64_t _n = 0;
for(int64_t cube = 0; cube < count;cube++){
_n++;
if(_n > (count / 10)){
Console.pout(std::format("\n"),{0,0,0},{0,0,0},false);
_n = 0;
}
Console.pout(" ",
{0,0,0},
ColorV4((rand() % 255),(rand() % 255), (rand() % 255))
,true);
}
}
int main(int argc,char** argv){
logo();
GenCubesANSI(1000);
}
стрим ннада? Если на сиги закинет кто-та 200р
но погнали. А то курить хуйню с гариком яя не хочу
2202 2050 2381 0762
но погнали. А то курить хуйню с гариком яя не хочу
🎉 Присоединяйся к VPN сервису!
💎 При первом пополнении от 100 ₽ ты получишь 25 ₽ бонусом на баланс!
🚀 Быстрое подключение
🌍 Серверы по всему миру
🔒 Надежная защита
Обход белых списков
👇 Переходи по ссылке:
https://t.me/glushvpn_bot?start=refAZIWtKrnкод для создания блюра у окна
void RenderBlur(HWND hwnd) {
struct ACCENTPOLICY {
int na;
int nf;
int nc;
int nA;
};
struct WINCOMPATTRDATA {
int na;
PVOID pd;
ULONG ul;
};
const HINSTANCE hm = LoadLibrary(L"user32.dll");
if (hm) {
typedef BOOL(WINAPI* pSetWindowCompositionAttribute)(HWND, WINCOMPATTRDATA*);
const pSetWindowCompositionAttribute SetWindowCompositionAttribute = (pSetWindowCompositionAttribute)GetProcAddress(hm, "SetWindowCompositionAttribute");
if (SetWindowCompositionAttribute) {
ACCENTPOLICY policy = { 3, 0, 0, 0 };
WINCOMPATTRDATA data = { 19, &policy,sizeof(ACCENTPOLICY) };
SetWindowCompositionAttribute(hwnd, &data);
}
FreeLibrary(hm);
}
}