I used to have a small program that would show colors and codes. Does anyone know of where I could find one?
Like this, only portable.
http://www.visibone.com/colorlab/
Printable View
I used to have a small program that would show colors and codes. Does anyone know of where I could find one?
Like this, only portable.
http://www.visibone.com/colorlab/
On your browsers menu:
File > Save As...
It will save all the files needed to run that webpage onto disk.
this is a recreation of something I made a long time ago... I think I was just fascinated by the fact that some code only exists to generate more code for something else... in this case, HTML for a browser... this was back when I was just getting into PHP... anyway, it's free for your use, and should be fully portable... even though it's not what you want ;)
edit: I VERY strongly urge you to pipe that out to a file, rather than just running the program... it outputs 135KB >.<Code:#include <iostream>
#include <iomanip>
inline void output(const int R, const int G, const int B);
int main()
{
int R=0x0;
int G=0x0;
int B=0x0;
std::cout<<"<html><head><title>COLORS!!!</title></head><body><table>";
for(R=0x0;R<=0xF;R+=0x1)
{
for(G=0x0;G<=0xF;G+=0x1)
{
std::cout<<"<tr>";
for(B=0x0;B<=0xF;B+=0x1)
{
output(R,G,B);
}
std::cout<<"</tr>";
}
}
std::cout<<"</table></body></html>"<<std::flush;
return 0;
}
inline void output(const int R, const int G, const int B)
{
std::cout<<"<td bgcolor=\"#"<<std::hex<<std::uppercase
" <<R<<R<<G<<G<<B<<B<<"\">"<<R<<R<<G<<G<<B<<B<<"</td>";
"}
You're code formatter isn't working properly:
My code formatter doesn't do that. :DCode:std::cout<<"<td bgcolor=\"#"<<std::hex<<std::uppercase
yeah I knokw... I'm just too lazy to fix that =PQuote:
Originally Posted by dwks