- C24zhuchengyu's blog
不知道干啥用的代码
- @ 2024-7-16 18:17:58
#include<bits/stdc++.h>
using namespace std;
int main(){
int r,g,b;
//title
for(r=0;r<256;r+=4){
for(g=r;g<256;g+=4){
for(b=g;b<256;b+=4){
char x[101]={},y[101]={},z[101]={};
itoa(r,x,10);
itoa(g,y,10);
itoa(b,z,10);
cout<<"\033[48;2;"<<x<<";"<<y<<";"<<z<<"m ";
}
}
}
for(int i=0;i<10000;i++){
cout<<" ";
}cout<<"\033[38;2;255;255;255m";
return 0;
}